PHP Class Kimai_Logger

Exibir arquivo Open project: kimai/kimai Class Usage Examples

Public Methods

Method 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

Method Description
__construct ( ) Create a new logger instance.

Method Details

__destruct() public method

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

errorHandler() public static method

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

exceptionHandler() public static method

public static exceptionHandler ( $exception )

init() public static method

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

log() public method

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

logfile() public static method

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