Class Logger
Logs messages to an external database. Configure it from /app/config/config.ini
Methods summary
public static
Kernel\Dispatch\Logger
|
#
singleton( )
Returns a Logger instance, creating it if it did not exist.
Returns a Logger instance, creating it if it did not exist.
Returns
|
public
|
|
public static
|
#
info( mixed $message, integer $errType = 0 )
Sends an info message to the central logger
Sends an info message to the central logger
Parameters
- $message
- The message to save. If it is not string or numeric, it will be converted using var_export($var, TRUE)
- $errType
- = 0 An error code
|
public static
|
#
warn( mixed $message, integer $errType = 0 )
Sends a warn message to the central logger
Sends a warn message to the central logger
Parameters
- $message
- The message to save. If it is not string or numeric, it will be converted using var_export($var, TRUE)
- $errType
- = 0 An error code
|
public static
|
#
error( array $error )
Sends an error message to the central logger
Sends an error message to the central logger
Parameters
- $error
- The error to persist
|
protected static
|
#
sendLog( string $type, string $file, integer $line, string $message, integer $errType )
Sends log info to the central logger and FB::logs the response
Sends log info to the central logger and FB::logs the response
Parameters
- $type
- The type of log ('info', 'warn', 'error')
- $file
- The file of the error
- $line
- The line number where the error is triggered
- $message
- The error or info message
- $errType
- The PHP errno
|
Properties summary
protected static
Core\Helpers\Hooks
|
$hooks
The instance of the Hooks class.
The instance of the Hooks class.
|
|