Class rex_logger
-
Psr\Log\AbstractLogger
-
rex_logger
uses
rex_factory_trait
Methods summary
public static
string
|
#
getPath( )
Returns the path to the system.log file.
Returns the path to the system.log file.
Returns
string string
|
|
public static
|
#
logException( Throwable|Exception $exception )
Shorthand: Logs the given Exception.
Shorthand: Logs the given Exception.
Parameters
- $exception
- The Exception to log
|
|
public static
|
#
logError( integer $errno, string $errstr, string $errfile, integer $errline )
Shorthand: Logs a error message.
Shorthand: Logs a error message.
Parameters
- $errno
- The error code to log, e.g. E_WARNING
- $errstr
- The error message
- $errfile
- The file in which the error occured
- $errline
- The line of the file in which the error occured
Throws
InvalidArgumentException InvalidArgumentException
|
|
public
|
#
log( mixed $level, string $message, array $context = [], string $file = null, integer $line = null )
Logs with an arbitrary level.
Logs with an arbitrary level.
Parameters
- $level
- $message
- $context
- $file
- $line
Throws
InvalidArgumentException InvalidArgumentException
|
|
public static
|
#
open( )
Prepares the logifle for later use.
Prepares the logifle for later use.
|
|
public static
|
#
close( )
Closes the logfile. The logfile is not be able to log further message after
beeing closed.
Closes the logfile. The logfile is not be able to log further message after
beeing closed.
You dont need to close the logfile manually when it was registered during the
request.
|
|
public static
string
|
#
getLogLevel( integer $errno )
Map php error codes to PSR3 error levels.
Map php error codes to PSR3 error levels.
Parameters
- $errno
- a php error code, e.g. E_ERROR
Returns
string string
|
|
public static
self
|
|
|
callFactoryClass()
,
getFactoryClass()
,
hasFactoryClass()
,
setFactoryClass()