Méthode |
Description |
|
__construct ( $simpleHistory = null ) |
Constructor. Remember to call this as parent constructor if making a childlogger |
|
adminCSS ( ) |
Override this to add CSS in for your logger. |
|
adminJS ( ) |
Override this to add JavaScript in the footer for your logger. |
|
alert ( string $message, array $context = [] ) : null |
Action must be taken immediately. |
|
alertMessage ( string $message, array $context = [] ) : null |
Action must be taken immediately. |
|
critical ( string $message, array $context = [] ) : null |
Critical conditions. |
|
criticalMessage ( string $message, array $context = [] ) : null |
Critical conditions. |
|
debug ( string $message, array $context = [] ) : null |
Detailed debug information. |
|
debugMessage ( string $message, array $context = [] ) : null |
Detailed debug information. |
|
emergency ( string $message, array $context = [] ) : null |
System is unusable. |
|
emergencyMessage ( string $message, array $context = [] ) : null |
System is unusable. |
|
error ( string $message, array $context = [] ) : null |
Runtime errors that do not require immediate action but should typically
be logged and monitored. |
|
errorMessage ( string $message, array $context = [] ) : null |
Runtime errors that do not require immediate action but should typically
be logged and monitored. |
|
getCapability ( ) |
Returns the capability required to read log rows from this logger |
|
getInfo ( ) : array |
Get array with information about this logger |
|
getInfoValueByKey ( $key ) : Mixed |
Return single array entry from the array in getInfo()
Returns the value of the key if value exists, or null |
|
getLogRowDetailsOutput ( object $row ) : string |
Use this method to output detailed output for a log row
Example usage is if a user has uploaded an image then a
thumbnail of that image can bo outputed here |
|
getLogRowHeaderOutput ( $row ) : string |
Returns header output for a log row
Format should be common for all log rows and should be like:
Username (user role) · Date |
|
getLogRowPlainTextOutput ( $row ) |
Returns the plain text version of this entry
Used in for example CSV-exports. |
|
getLogRowSenderImageOutput ( $row ) |
Get output for image
Image can be for example gravar if sender is user,
or other images if sender i system, wordpress, and so on |
|
get_event_ip_number_headers ( $row ) |
Returns additional headers with ip number from context |
|
get_ip_number_header_keys ( ) |
Returns array with headers that may contain user IP |
|
info ( string $message, array $context = [] ) : null |
Interesting events. |
|
infoMessage ( string $message, array $context = [] ) : null |
Interesting events. |
|
interpolate ( string $message, array $context = [], array $row = null ) |
Interpolates context values into the message placeholders. |
|
loaded ( ) |
Method that is called automagically when logger is loaded by Simple History
Add your init stuff here |
|
log ( mixed $level, string $message, array $context = [] ) : null |
Logs with an arbitrary level. |
|
notice ( string $message, array $context = [] ) : null |
Normal but significant events. |
|
noticeMessage ( string $message, array $context = [] ) : null |
Normal but significant events. |
|
validate_ip ( $ip ) |
Ensures an ip address is both a valid IP and does not fall within
a private network range. |
|
warning ( string $message, array $context = [] ) : null |
Exceptional occurrences that are not errors. |
|
warningMessage ( string $message, array $context = [] ) : null |
Exceptional occurrences that are not errors. |
|