_setShortcutHandler(\sShortcut $sShortcut, \sHandloer $sHandler) : boolean
Each shortcut handler receives two parameters: - The message - The log level
| access | public |
|---|
\sShortcutstring Shortcut name
\sHandloerstring Name of the function to call
booleanTrue if set was successful_shDate() : \The
| access | public |
|---|
\Thecurrent date_shLevel($message, $loglevel) : \The
The canonical name is padded to 10 characters to achieve a better formatting.
| access | public |
|---|
\Thecanonical log level_shMessage($message, $loglevel) : \The
| access | public |
|---|
\Thelog message_shSession() : \The
| access | public |
|---|
\Thecurrent sessioncLog(\oLogger $oLogger) : \none
cLog is a logging facility which uses PEAR::Log to do its logging, and features log categories.
The log format interface of cLog is capable of being extended by subclasses. See the note about the log shortcuts below.
Log shortcuts are placeholders which are replaced when a log entry is created. Placeholders start with a percentage sign (%) and contain one or more characters. Each placeholder is handled by an own function which decides what to do.
| access | public |
|---|
\oLoggermixed Logger object (any subclass of PEAR::Log), or false if cLog should handle the logger creation
\nonelog(\sMessage $sMessage, \bPriority $bPriority) : \none
| access | public |
|---|
\sMessagestring Message to log
\bPriorityinteger PEAR Loglevel (or default if null / omitted)
\nonesetLogFormat(\sLogFormat $sLogFormat) : \none
The following placeholders are defined in this class: %date Date and Time %session Session-ID %level Log Level %message Message
| access | public |
|---|
\sLogFormatstring Format string
\none$_aShortcutHandlers : array
| access | private |
|---|
$_oLogger : object
| access | private |
|---|
$_sLogFormat : string
| access | private |
|---|