Log

interface Log (View source)

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, string $level = 'debug')

Register a daily file log handler.

Details

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

Log an alert message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a critical message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log an error message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a warning message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a notice to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log an informational message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a debug message to the logs.

Parameters

string $message
array $context

Return Value

void

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

Log a message to the logs.

Parameters

string $level
string $message
array $context

Return Value

void

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

Register a file log handler.

Parameters

string $path
string $level

Return Value

void

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

© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.6/Illuminate/Contracts/Logging/Log.html