Class rex_logger

Simple Logger class.

Psr\Log\AbstractLogger
Extended by rex_logger uses rex_factory_trait
Package: redaxo\core
Author: staabm
Located at redaxo/src/core/lib/util/logger.php

Methods summary

public static string
# getPath( )

Returns the path to the system.log file.

public static
# logException( Throwable|Exception $exception )

Shorthand: Logs the given Exception.

public static
# logError( integer $errno, string $errstr, string $errfile, integer $errline )

Shorthand: Logs a error message.

public
# log( mixed $level, string $message, array $context = [], string $file = null, integer $line = null )

Logs with an arbitrary level.

public static
# open( )

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.

public static string
# getLogLevel( integer $errno )

Map php error codes to PSR3 error levels.

public static self
# factory( )

Methods used from rex_factory_trait

callFactoryClass(), getFactoryClass(), hasFactoryClass(), setFactoryClass()