sfStreamLogger logs messages to a PHP stream.
Method Summary
-
doLog($message, $priority)
Logs a message.
-
Boolean
initialize($dispatcher, $options = array())
Initializes this logger.
-
setStream((stream) $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 = array())
Browse code
| $dispatcher |
A sfEventDispatcher instance
|
| $options |
An array of options.
|
Initializes this logger.
Available options:
returns true, if initialization completes successfully, otherwise false.
-
setStream ((stream) $stream)
Browse code
Sets the PHP stream to use for this logger.
|