PHP Класс Scalr\Logger

С версии: 5.0 (19.09.2014)
Автор: Vitaliy Demidov ([email protected])
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$dateFormat string Nov 13 06:28:01 -06:00
$level integer Retport level
$logLevelName array Log level names
$name string Category name
$severities array Helps to convert a level into integer representation for writing into DB

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

Метод Описание
__construct ( string $name = '' ) Constructor
debug ( string $message, string $args = null ) Log a message with the DEBUG level.
error ( string $message, string $args = null ) Log a message with the ERROR level.
fatal ( string $message, string $args = null ) Log a message with the FATAL level.
getDateFormat ( ) : string Gets the format of the date
getLevel ( ) : integer Gets log level
getName ( ) : string Gets the name of a logger category
info ( string $message, string $args = null ) Log a message with the INFO level.
log ( integer | string $level, string $message, string $args = null ) Raw log message
setDateFormat ( string $dateFormat ) : Logger Sets the format of the date
setLevel ( integer | string $logLevel ) : Logger Sets log level
setName ( string $name ) : Logger Sets the name of a logger category
warn ( string $message, string $args = null ) Log a message with the WARN level.

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

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

Constructor
public __construct ( string $name = '' )
$name string optional The name of the category

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

Log a message with the DEBUG level.
public debug ( string $message, string $args = null )
$message string The message that accepts format
$args string optional An arguments

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

Log a message with the ERROR level.
public error ( string $message, string $args = null )
$message string The message that accepts format
$args string optional An arguments

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

Log a message with the FATAL level.
public fatal ( string $message, string $args = null )
$message string The message that accepts format
$args string optional An arguments

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

Gets the format of the date
public getDateFormat ( ) : string
Результат string Returns the format of the date

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

Gets log level
public getLevel ( ) : integer
Результат integer Returns log level

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

Gets the name of a logger category
public getName ( ) : string
Результат string Returns the name of a logger category

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

Log a message with the INFO level.
public info ( string $message, string $args = null )
$message string The message that accepts format
$args string optional An arguments

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

Raw log message
public log ( integer | string $level, string $message, string $args = null )
$level integer | string The log level
$message string The message that accepts format specification
$args string optional An arguments

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

Sets the format of the date
public setDateFormat ( string $dateFormat ) : Logger
$dateFormat string The format of the date
Результат Logger

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

Sets log level
public setLevel ( integer | string $logLevel ) : Logger
$logLevel integer | string A log level also accepts (FATAL, ERROR, WARN, INFO, DEBUG)
Результат Logger

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

Sets the name of a logger category
public setName ( string $name ) : Logger
$name string The name of the category or class
Результат Logger

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

Log a message with the WARN level.
public warn ( string $message, string $args = null )
$message string The message that accepts format
$args string optional An arguments

Описание свойств

$dateFormat защищенное свойство

Nov 13 06:28:01 -06:00
protected string $dateFormat
Результат string

$level защищенное свойство

Retport level
protected int $level
Результат integer

$logLevelName защищенное статическое свойство

Log level names
protected static array $logLevelName
Результат array

$name защищенное свойство

Category name
protected string $name
Результат string

$severities защищенное статическое свойство

Helps to convert a level into integer representation for writing into DB
protected static array $severities
Результат array