20 lines
339 B
Markdown
20 lines
339 B
Markdown
# Logging
|
|
|
|
You can use the logging class to output to a file.
|
|
|
|
|
|
use ```$log->info(The Message');```
|
|
|
|
Logging levels are:
|
|
```
|
|
'DEBUG' => 0,
|
|
'INFO' => 1,
|
|
'WARNING' => 2,
|
|
'ERROR' => 3,
|
|
];
|
|
```
|
|
|
|
It's recommended that production is set to ERROR.
|
|
You set the log level in /App/config.php under 'loglevel' => 'ERROR'
|
|
|