PHP Класс Kimai_Logger

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Приватные методы

Метод Описание
__construct ( ) Create a new logger instance.

Описание методов

__destruct() публичный Метод

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

errorHandler() публичный статический Метод

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

exceptionHandler() публичный статический Метод

public static exceptionHandler ( $exception )

init() публичный статический Метод

Initialize the logger.
Автор: sl
public static init ( )

log() публичный Метод

Write a line to the logfile.
Автор: sl
public log ( string $line )
$line string line to log

logfile() публичный статический Метод

Simple static method to log lines to the logfile.
Автор: sl
public static logfile ( string $value )
$value string message