442 B
442 B
Logging
You can use the logging class to output to a file.
use $log->info(The Message');
1
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' If you are using CORXN a health check is run every 30 seconds which would fill the log file with info.