_setShortcutHandler()
_shDate()
_shLevel()
_shMessage()
_shModule()
_shSession()
buffer()
cBufferedLog()
cLog()
cModuleLog()
commit()
log()
revoke()
setLogFormat()
setModule()
$_aMessages
$_aShortcutHandlers
$_oLogger
$_oModule
$_sLogFormat
_setShortcutHandler(\sShortcut $sShortcut, \sHandloer $sHandler) : boolean
Each shortcut handler receives two parameters: - The message - The log level
| access | public |
|---|---|
| inherited_from | \cLog::_setShortcutHandler() |
| inherited_from | \cBufferedLog::_setShortcutHandler() |
\sShortcutstring Shortcut name
\sHandloerstring Name of the function to call
booleanTrue if set was successful_shDate() : \The
| access | public |
|---|---|
| inherited_from | \cLog::_shDate() |
| inherited_from | \cBufferedLog::_shDate() |
\Thecurrent date_shLevel($message, $loglevel) : \The
The canonical name is padded to 10 characters to achieve a better formatting.
| access | public |
|---|---|
| inherited_from | \cLog::_shLevel() |
| inherited_from | \cBufferedLog::_shLevel() |
\Thecanonical log level_shMessage($message, $loglevel) : \The
| access | public |
|---|---|
| inherited_from | \cLog::_shMessage() |
| inherited_from | \cBufferedLog::_shMessage() |
\Thelog message_shModule() : \id
| access | public |
|---|
\idand name of the module_shSession() : \The
| access | public |
|---|---|
| inherited_from | \cLog::_shSession() |
| inherited_from | \cBufferedLog::_shSession() |
\Thecurrent sessionbuffer(\sMessage $sMessage, \bPriority $iPriority) : \none
| access | public |
|---|---|
| inherited_from | \cBufferedLog::buffer() |
\sMessagestring Message to log
\bPriorityinteger PEAR Loglevel (or default if null / omitted)
\nonecBufferedLog(\oLogger $oLogger) : array
cBufferedLog is a logging facility which uses cLog to do its logging, and features buffered logging
| see | \cLog |
|---|---|
| access | public |
| inherited_from | \cBufferedLog::cBufferedLog() |
\oLoggerobject The object to use for logging, or false if a new one should be created.
arrayBeschreibungcLog(\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() |
| inherited_from | \cBufferedLog::cLog() |
\oLoggermixed Logger object (any subclass of PEAR::Log), or false if cLog should handle the logger creation
\nonecModuleLog(\oLogger $oLogger, \idmod $idmod)
cModuleLog is a logging facility which uses cBufferedLog to do its logging, and features automatic module handling.
| see | \cBufferedLog |
|---|---|
| access | public |
\oLoggerobject The object to use for logging, or false if a new one should be created.
\idmodinteger The module ID to use
commit() : \none
| access | public |
|---|
\nonelog(\sMessage $sMessage, \bPriority $bPriority) : \none
| access | public |
|---|---|
| inherited_from | \cLog::log() |
| inherited_from | \cBufferedLog::log() |
\sMessagestring Message to log
\bPriorityinteger PEAR Loglevel (or default if null / omitted)
\nonerevoke() : \none
| access | public |
|---|---|
| inherited_from | \cBufferedLog::revoke() |
\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 |
|---|---|
| inherited_from | \cLog::setLogFormat() |
| inherited_from | \cBufferedLog::setLogFormat() |
\sLogFormatstring Format string
\nonesetModule(\idmod $idmod)
setModule automatically buffers basic module information to the log to assist the developer in debugging his modules.
| access | public |
|---|
\idmodinteger The module ID to use
$_aMessages : array
| access | private |
|---|---|
| inherited_from | \cBufferedLog::$$_aMessages |
$_aShortcutHandlers : array
| access | private |
|---|---|
| inherited_from | \cLog::$$_aShortcutHandlers |
| inherited_from | \cBufferedLog::$$_aShortcutHandlers |
$_oLogger : object
| access | private |
|---|---|
| inherited_from | \cLog::$$_oLogger |
| inherited_from | \cBufferedLog::$$_oLogger |
$_oModule
$_sLogFormat : string
| access | private |
|---|---|
| inherited_from | \cLog::$$_sLogFormat |
| inherited_from | \cBufferedLog::$$_sLogFormat |