sfStreamLogger logs messages to a PHP stream.
Method Summary
-
doLog($message, $priority)
Logs a message.
-
Boolean
initialize($dispatcher, $options)
Initializes this logger.
-
setStream($stream)
Sets the PHP stream to use for this logger.
Methods inherited from sfLogger
alert , crit , debug , doLog , emerg , err , getLogLevel , getPriorityName , info , initialize , listenToLogEvent , log , notice , setLogLevel , shutdown , warning , __construct
Method Details
-
doLog ($message, $priority)
Browse code
| $message |
Message |
| $priority |
Message priority |
Logs a message.
-
(Boolean) initialize ($dispatcher, $options)
Browse code
| $dispatcher |
A sfEventDispatcher instance |
| $options |
An array of options. |
Initializes this logger.
Available options: - stream: A PHP stream
returns true, if initialization completes successfully, otherwise false.
-
Sets the PHP stream to use for this logger.
|