sfVarLogger logs messages within its instance for later use.
Method Summary
-
doLog($message, $priority)
Logs a message.
-
integer
getHighestPriority()
Returns the highest priority in the logs.
-
array
getLogs()
Gets the logs.
-
array
getPriorities()
Returns all the priorities in the logs.
-
array
getTypes()
Returns all the types in the logs.
-
array
getXDebugStack()
Returns the xdebug stack.
-
Boolean
initialize($dispatcher, $options = array())
Initializes 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.
-
(integer) getHighestPriority ()
Browse code
Returns the highest priority in the logs.
returns The highest priority
-
Gets the logs.
Each log entry has the following attributes: * priority * time * message * type * debugStack
returns An array of logs
-
(array) getPriorities ()
Browse code
Returns all the priorities in the logs.
returns An array of priorities
-
Returns all the types in the logs.
returns An array of types
-
(array) getXDebugStack ()
Browse code
Returns the xdebug stack.
returns The xdebug stack as an array
-
(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.
|