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.
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.
© Taylor Otwell
Licensed under the MIT License.
Laravel is a trademark of Taylor Otwell.
https://laravel.com/api/5.3/Illuminate/Contracts/Logging/Log.html