note 45580 deleted from keyword.paamayim-nekudotayim by tomsommer
| From: | tomsommer@php.net | Date: | Sun, 12 Sep 2004 00:33:28 +0000 |
| Subject: | note 45580 deleted from keyword.paamayim-nekudotayim by tomsommer | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-76492@lists.php.net to get a copy of this message | ||
Note Submitter: look_up_gearond_on_web_there is only_one
----
In reply to (tango23 at inbox dot lv)'s posting, there is no need to instatiate the logger
class, nor supply it with a file path. Just do this:
.
class logger{
....function log($what_is_to_be_logged){
........$file_path='filepath';
........open file($file_path)
........append to file $what_is_to_be_logged
........close file
........return status of action if desired
....}
}
.
To use it, just put it in the prepend file and do this:
.
logger::log('what is to be logged');