This Logger can be seen as Abstract implementation and holds all Common methods.
This impementation simply ECHOs the enabled Log Messages and is NOT made for productive use!
It takes a Log Level within the constructor. The LogLevel may also be changed during Script Runtime by calling:
If no Parameter is passed within the Constructor, the LogLevel will be fetched from the System Configuration:
- $GLOBALS['_BIGACE']['log']['level']
The possible LogLevel are:
| Class | Description |
|---|---|
| FileLogger | This Logger saves Message to a file. |
| NullLogger | This Logger does nothing. It behaves like /dev/null/ ;-) |
| RuntimeLogger | This Logger saves all messages within an internal array. You may fetch these messages at the end of the call and use them for whatever you want (output in html, save to file...). |
Create a new Logger instance with the given Log Level.
Clean up all resources that might be used by this Logger!
Formats one Entry of a Backtrace Entry.
This method will called in a forach loop, for all entry from debug_backtrace().
Returns the Description for the given Mode.
Returns if Debugging is enabled.
Wrap Debug Calls within an if block for performance issues:
- {
- }
Returns if the given Mode is enabled.
Wrap a list of Logger Calls for performance issues inside an if block, if you are sure that the given Level might be deactivated!
- {
- }
Log a message for a special mode, use this if you wanna use your own level/mode!
Messages of this Type are most often used for development or error search!
Messages of this Type will always be logged!
Messages of this Type are used for information messages.
Callback function for the PHP logging mechanism.
Only SQL querys should be logged by this function, they have the lowest priority.
ONLY activate this level for Development or Error Search, NEVER on productive Systems!
Sets the Level, that defines which Messages will be dumped.
Documentation generated by phpDocumentor 1.3.1