interface Log (View source)

Methods

void
alert( string $message, array $context = array())

Log an alert message to the logs.

void
critical( string $message, array $context = array())

Log a critical message to the logs.

void
error( string $message, array $context = array())

Log an error message to the logs.

void
warning( string $message, array $context = array())

Log a warning message to the logs.

void
notice( string $message, array $context = array())

Log a notice to the logs.

void
info( string $message, array $context = array())

Log an informational message to the logs.

void
debug( string $message, array $context = array())

Log a debug message to the logs.

void
log( string $level, string $message, array $context = array())

Log a message to the logs.

void
useFiles( string $path, string $level = 'debug')

Register a file log handler.

void
useDailyFiles( string $path, int $days, string $level = 'debug')

Register a daily file log handler.

Details

at line line 14
void alert( string $message, array $context = array())

Log an alert message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 23
void critical( string $message, array $context = array())

Log a critical message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 32
void error( string $message, array $context = array())

Log an error message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 41
void warning( string $message, array $context = array())

Log a warning message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 50
void notice( string $message, array $context = array())

Log a notice to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 59
void info( string $message, array $context = array())

Log an informational message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 68
void debug( string $message, array $context = array())

Log a debug message to the logs.

Parameters

string $message
array $context

Return Value

void

at line line 78
void log( string $level, string $message, array $context = array())

Log a message to the logs.

Parameters

string $level
string $message
array $context

Return Value

void

at line line 87
void useFiles( string $path, string $level = 'debug')

Register a file log handler.

Parameters

string $path
string $level

Return Value

void

at line line 97
void useDailyFiles( string $path, int $days, string $level = 'debug')

Register a daily file log handler.

Parameters

string $path
int $days
string $level

Return Value

void