Method |
Description |
|
__construct ( PluginHooksService $hooks, Config $config, elgg\Context $context ) |
Constructor |
|
disable ( ) : void |
Temporarily disable logging and capture logs (before tests) |
|
dump ( mixed $data, boolean $display = true ) : void |
Dump data to log or screen |
|
enable ( ) : array |
Restore logging and get record of log calls (after tests) |
|
error ( string $message ) : boolean |
Log message at the ERROR level |
|
getLevel ( ) : integer |
Get the current logging level |
|
info ( string $message ) : boolean |
Log message at the INFO level |
|
log ( string $message, integer $level = self::NOTICE ) : boolean |
Add a message to the log |
|
notice ( string $message ) : boolean |
Log message at the NOTICE level |
|
setDisplay ( boolean $display ) : void |
Set whether the logging should be displayed to the user |
|
setHooks ( PluginHooksService $hooks ) : void |
Reset the hooks service for this instance (testing) |
|
setLevel ( integer $level ) : void |
Set the logging level |
|
warn ( string $message ) : boolean |
Log message at the WARNING level |
|