_setShortcutHandler()
_shDate()
_shLevel()
_shMessage()
_shSession()
buffer()
cBufferedLog()
cLog()
commit()
log()
revoke()
setLogFormat()
$_aMessages
$_aShortcutHandlers
$_oLogger
$_sLogFormat
_setShortcutHandler(\sShortcut $sShortcut, \sHandloer $sHandler) : boolean
Each shortcut handler receives two parameters: - The message - The log level
access | public |
---|---|
inherited_from | \cLog::_setShortcutHandler() |
\sShortcut
string Shortcut name
\sHandloer
string Name of the function to call
boolean
True if set was successful_shDate() : \The
access | public |
---|---|
inherited_from | \cLog::_shDate() |
\The
current date_shLevel($message, $loglevel) : \The
The canonical name is padded to 10 characters to achieve a better formatting.
access | public |
---|---|
inherited_from | \cLog::_shLevel() |
\The
canonical log level_shMessage($message, $loglevel) : \The
access | public |
---|---|
inherited_from | \cLog::_shMessage() |
\The
log message_shSession() : \The
access | public |
---|---|
inherited_from | \cLog::_shSession() |
\The
current sessionbuffer(\sMessage $sMessage, \bPriority $iPriority) : \none
access | public |
---|
\sMessage
string Message to log
\bPriority
integer PEAR Loglevel (or default if null / omitted)
\none
cBufferedLog(\oLogger $oLogger) : array
cBufferedLog is a logging facility which uses cLog to do its logging, and features buffered logging
see | \cLog |
---|---|
access | public |
\oLogger
object The object to use for logging, or false if a new one should be created.
array
BeschreibungcLog(\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 |
---|---|
inherited_from | \cLog::cLog() |
\oLogger
mixed Logger object (any subclass of PEAR::Log), or false if cLog should handle the logger creation
\none
commit() : \none
access | public |
---|
\none
log(\sMessage $sMessage, \bPriority $bPriority) : \none
access | public |
---|---|
inherited_from | \cLog::log() |
\sMessage
string Message to log
\bPriority
integer PEAR Loglevel (or default if null / omitted)
\none
revoke() : \none
access | public |
---|
\none
setLogFormat(\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 |
---|---|
inherited_from | \cLog::setLogFormat() |
\sLogFormat
string Format string
\none
$_aMessages : array
access | private |
---|
$_aShortcutHandlers : array
access | private |
---|---|
inherited_from | \cLog::$$_aShortcutHandlers |
$_oLogger : object
access | private |
---|---|
inherited_from | \cLog::$$_oLogger |
$_sLogFormat : string
access | private |
---|---|
inherited_from | \cLog::$$_sLogFormat |