Original logging sample from Concrete CMS 8.5.12
- Disable email logging
- Changed to save log to file instead of database
- The path is set to
/var/log/concrete/concrete.log
Make sure to logrotate the log file otherwise it will be large text file.
<?php | |
// Logging setting based on Concrete CMS 8.5.12 | |
return [ | |
/* | |
* ------------------------------------------------------------------------ | |
* Logging settings | |
* ------------------------------------------------------------------------ | |
*/ | |
'log' => [ | |
/* | |
* Whether to log emails | |
* | |
* @var bool | |
*/ | |
'emails' => true, | |
/* | |
* Whether to log Errors | |
* | |
* @var bool | |
*/ | |
'errors' => true, | |
/* | |
* Whether to log Spam | |
* | |
* @var bool | |
*/ | |
'spam' => false, | |
/* | |
* Whether to log REST API requests headers | |
* | |
* @var bool | |
*/ | |
'api' => false, | |
'enable_dashboard_report' => true, | |
'configuration' => [ | |
/* | |
* Configuration mode | |
* | |
* @var string simple|advanced | |
*/ | |
'mode' => 'simple', | |
'simple' => [ | |
/* | |
* What log level to store core logs in the database | |
* @var string | |
*/ | |
'core_logging_level' => 'NOTICE', | |
/* | |
* Which handle to use | |
* | |
* @var string (database|file) | |
*/ | |
'handler' => 'database', | |
'file' => [ | |
/* | |
* File path to store logs | |
* | |
* @var string | |
*/ | |
'file' => '', | |
], | |
], | |
'advanced' => [ | |
'configuration' => [], | |
], | |
], | |
], |
<?php | |
// Logging setting based on Concrete CMS 8.5.12 | |
return [ | |
/* | |
* ------------------------------------------------------------------------ | |
* Logging settings | |
* ------------------------------------------------------------------------ | |
*/ | |
'log' => [ | |
/* | |
* Whether to log emails | |
* | |
* @var bool | |
*/ | |
'emails' => false, | |
/* | |
* Whether to log Errors | |
* | |
* @var bool | |
*/ | |
'errors' => true, | |
/* | |
* Whether to log Spam | |
* | |
* @var bool | |
*/ | |
'spam' => false, | |
/* | |
* Whether to log REST API requests headers | |
* | |
* @var bool | |
*/ | |
'api' => false, | |
'enable_dashboard_report' => true, | |
'configuration' => [ | |
/* | |
* Configuration mode | |
* | |
* @var string simple|advanced | |
*/ | |
'mode' => 'simple', | |
'simple' => [ | |
/* | |
* What log level to store core logs in the database | |
* @var string | |
*/ | |
'core_logging_level' => 'NOTICE', | |
/* | |
* Which handle to use | |
* | |
* @var string (database|file) | |
*/ | |
'handler' => 'file', | |
'file' => [ | |
/* | |
* File path to store logs | |
* | |
* @var string | |
*/ | |
'file' => '/var/log/concrete/concrete.log', | |
], | |
], | |
'advanced' => [ | |
'configuration' => [], | |
], | |
], | |
], |
Original logging sample from Concrete CMS 8.5.12
/var/log/concrete/concrete.log
Make sure to logrotate the log file otherwise it will be large text file.