interface Log

Methods

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

Log an alert message to the logs.

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

Log a critical message to the logs.

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

Log an error message to the logs.

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

Log a warning message to the logs.

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

Log a notice to the logs.

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

Log an informational message to the logs.

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

Log a debug message to the logs.

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

Log a message to the logs.

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

Register a file log handler.

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

Register a daily file log handler.

Details

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

Log an alert message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a critical message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log an error message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a warning message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a notice to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log an informational message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a debug message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a message to the logs.

Parameters

string $level
string $message
array $context

Return Value

void

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

Register a file log handler.

Parameters

string $path
string $level

Return Value

void

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

Register a daily file log handler.

Parameters

string $path
int $days
string $level

Return Value

void