include/SugarLogger/LoggerManager.php
\LoggerManager
Package: SugarCRM
Log management
- Api
Properties
$_levelMapping= 'array(
'debug' => 100,
'info' => 70,
'warn' => 50,
'deprecated' => 40,
'error' => 25,
'fatal' => 10,
'security' => 5,
'off' => 0,
)'
static
Default value
array(
'debug' => 100,
'info' => 70,
'warn' => 50,
'deprecated' => 40,
'error' => 25,
'fatal' => 10,
'security' => 5,
'off' => 0,
)
Details- Type
- n/a
$_logMapping= 'array(
'default' => 'SugarLogger',
)'
static
Default value
array(
'default' => 'SugarLogger',
)
Details- Type
- n/a
Methods
__call(
string $method, string $message
)
:
void
Overloaded method that handles the logging requests.
Parameters
Name | Type | Description |
---|---|---|
$method | string | |
$message | string |
|
assert(
string $message, boolean $condition
)
:
void
Used for doing design-by-contract assertions in the code; when the condition fails we'll write the message to the debug log
Parameters
Name | Type | Description |
---|---|---|
$message | string | |
$condition | boolean |
setLevel(
string $name
)
:
void
Sets the logger to the level indicated
Parameters
Name | Type | Description |
---|---|---|
$name | string | name of logger level to set it to |
setLogger(
string $level, string $logger
)
:
void
static
Sets the logger to use a particular backend logger for the given level. Set level to 'default' to make it the default logger for the application
Parameters
Name | Type | Description |
---|---|---|
$level | string | name of logger level to set it to |
$logger | string | name of logger class to use |