sfLogger is the abstract class for all logging classes.
Method Summary
-
alert($message)
Logs an alert message.
-
crit($message)
Logs a critical message.
-
debug($message)
Logs a debug message.
-
doLog($message, $priority)
Logs a message.
-
emerg($message)
Logs an emerg message.
-
err($message)
Logs an error message.
-
string
getLogLevel()
Retrieves the log level for the current logger instance.
-
string
getPriorityName($priority)
Returns the priority name given a priority class constant
-
info($message)
Logs an info message.
-
Boolean
initialize($dispatcher, $options)
Initializes this sfLogger instance.
-
listenToLogEvent($event)
Listens to application.log events.
-
log($message, $priority)
Logs a message.
-
notice($message)
Logs a notice message.
-
setLogLevel($level)
Sets a log level for the current logger instance.
-
shutdown()
Executes the shutdown procedure.
-
warning($message)
Logs a warning message.
-
__construct()
Class constructor.
Method Details
-
Logs an alert message.
-
Logs a critical message.
-
Logs a debug message.
-
doLog ($message, $priority)
Browse code
| $message |
Message |
| $priority |
Message priority |
Logs a message.
-
Logs an emerg message.
-
Logs an error message.
-
(string) getLogLevel ()
Browse code
Retrieves the log level for the current logger instance.
returns Log level
-
(string) getPriorityName ($priority)
Browse code
| $priority |
A priority class constant |
Returns the priority name given a priority class constant
returns The priority name
throws sfException if the priority level does not exist
-
Logs an info message.
-
(Boolean) initialize ($dispatcher, $options)
Browse code
| $dispatcher |
A sfEventDispatcher instance |
| $options |
An array of options. |
Initializes this sfLogger instance.
Available options: - level: The log level.
returns true, if initialization completes successfully, otherwise false.
throws sfInitializationException If an error occurs while initializing this sfLogger.
-
listenToLogEvent ($event)
Browse code
| $event |
An sfEvent instance |
Listens to application.log events.
-
log ($message, $priority)
Browse code
| $message |
Message |
| $priority |
Message priority |
Logs a message.
-
Logs a notice message.
-
Sets a log level for the current logger instance.
-
Executes the shutdown procedure.
Cleans up the current logger instance.
-
Logs a warning message.
-
Class constructor.
|