Definition at line 15 of file Logger.php.
Constructor.
- Parameters
-
\Elgg\PluginHooksService | $hooks | Hooks service |
Definition at line 48 of file Logger.php.
Elgg\Logger::dump |
( |
|
$data, |
|
|
|
$display = true |
|
) |
| |
Dump data to log or screen.
- Parameters
-
mixed | $data | The data to log |
bool | $display | Whether to include this in the HTML page |
- Returns
- void
Definition at line 166 of file Logger.php.
Elgg\Logger::error |
( |
|
$message | ) |
|
Log message at the ERROR level.
- Parameters
-
string | $message | The message to log |
- Returns
- bool
Definition at line 125 of file Logger.php.
Elgg\Logger::getLevel |
( |
| ) |
|
Get the current logging level.
- Returns
- int
Definition at line 75 of file Logger.php.
Elgg\Logger::info |
( |
|
$message | ) |
|
Log message at the INFO level.
- Parameters
-
string | $message | The message to log |
- Returns
- bool
Definition at line 155 of file Logger.php.
Elgg\Logger::log |
( |
|
$message, |
|
|
|
$level = self::NOTICE |
|
) |
| |
Add a message to the log.
- Parameters
-
string | $message | The message to log |
int | $level | The logging level |
- Returns
- bool Whether the messages was logged
Definition at line 100 of file Logger.php.
Elgg\Logger::notice |
( |
|
$message | ) |
|
Log message at the NOTICE level.
- Parameters
-
string | $message | The message to log |
- Returns
- bool
Definition at line 145 of file Logger.php.
Elgg\Logger::process |
( |
|
$data, |
|
|
|
$display, |
|
|
|
$level |
|
) |
| |
|
protected |
Process logging data.
- Parameters
-
mixed | $data | The data to process |
bool | $display | Whether to display the data to the user. Otherwise log it. |
int | $level | The logging level for this data |
- Returns
- void
Definition at line 178 of file Logger.php.
Elgg\Logger::setDisplay |
( |
|
$display | ) |
|
Set whether the logging should be displayed to the user.
Whether data is actually displayed to the user depends on this setting and other factors such as whether we are generating a JavaScript or CSS file.
- Parameters
-
bool | $display | Whether to display logging |
- Returns
- void
Definition at line 89 of file Logger.php.
Elgg\Logger::setLevel |
( |
|
$level | ) |
|
Set the logging level.
- Parameters
-
int | $level | The logging level |
- Returns
- void
Definition at line 61 of file Logger.php.
Elgg\Logger::warn |
( |
|
$message | ) |
|
Log message at the WARNING level.
- Parameters
-
string | $message | The message to log |
- Returns
- bool
Definition at line 135 of file Logger.php.
Elgg\Logger::$display = false |
|
protected |
Initial value:= array(
0 => 'OFF',
200 => 'INFO',
250 => 'NOTICE',
300 => 'WARNING',
400 => 'ERROR',
)
Definition at line 23 of file Logger.php.
const Elgg\Logger::ERROR = 400 |
const Elgg\Logger::INFO = 200 |
const Elgg\Logger::NOTICE = 250 |
const Elgg\Logger::OFF = 0 |
const Elgg\Logger::WARNING = 300 |
The documentation for this class was generated from the following file: