PHP Class Kimai_Logger

Afficher le fichier Open project: kimai/kimai Class Usage Examples

Méthodes publiques

Méthode Description
__destruct ( ) Close the file if the instance is destroyed.
errorHandler ( $errno, $errstr, $errfile, $errline )
exceptionHandler ( $exception )
init ( ) Initialize the logger.
log ( string $line ) Write a line to the logfile.
logfile ( string $value ) Simple static method to log lines to the logfile.

Private Methods

Méthode Description
__construct ( ) Create a new logger instance.

Method Details

__destruct() public méthode

Close the file if the instance is destroyed.
public __destruct ( )

errorHandler() public static méthode

public static errorHandler ( $errno, $errstr, $errfile, $errline )

exceptionHandler() public static méthode

public static exceptionHandler ( $exception )

init() public static méthode

Initialize the logger.
Author: sl
public static init ( )

log() public méthode

Write a line to the logfile.
Author: sl
public log ( string $line )
$line string line to log

logfile() public static méthode

Simple static method to log lines to the logfile.
Author: sl
public static logfile ( string $value )
$value string message