Configuration
$config['logit'] = [
'rotate' => 30,
'detailedLogs' => true,
];$config['logit'] = [
'log' => [
'models' => [
'Comment' => true
],
],
];$config['logit'] = [
'detailedLogs' => false, // Append full JSON object of saved data with the log?
'encodeDetailedLogs' => false,
'frontendLogs' => true, // Log updates in front-end requests? E.g. Channel:Form
'log' => [
'models' => [
'Category' => true,
'CategoryField' => true,
'CategoryGroup' => true,
'Channel' => true,
'ChannelField' => true,
'ChannelEntry' => true,
'ChannelFormSettings' => true,
'ChannelLayout' => true,
'Comment' => false, // Disabled by default, could lead to a lot of logs on a busy site.
'GlobalVariable' => true,
'Site' => true,
'Snippet' => true,
'SpecialtyTemplate' => true,
'Status' => true,
'Template' => true,
'TemplateGroup' => true,
'TemplateRoute' => true,
'Member' => true,
'Role' => true,
'RoleGroup' => true,
'RoleSetting' => true,
'Permission' => true,
],
'postActions' => [
'cp\/(addons\/settings)\/(\S+)' => true,
'cp\/(addons)' => true,
'cp\/(settings)\/(\S+)' => true,
],
'getActions' => [
'cp\/(addons\/install)\/(\S+)' => true,
'cp\/(addons\/remove)\/(\S+)' => true,
],
],
'rotate' => 0, // How often should logs be rotated (in days)?
/*
The default storage locations for log backups is in your site's user/cache/logit folder, however, it is
recommended to use an external storage service such as Amazon S3 to ensure the log files are not accidentally
deleted. Alternatively, you can create a folder outside of your user/cache folder to circumvent EE's cache clearing,
which will delete the contents in the user/cache folder.
*/
'storage' => [
'local' => [
'path' => '{PATH_CACHE}logit',
],
/*
BoldMinded will not assist in creating or troubleshooting S3 access. You will need to configure your account,
bucket, user, group, and IAM roles and permissions. If you do not configure permissions correctly, Logit will
throw an exception error... this is how you will know something is incorrect with the values below, or with
your user, group, or IAM settings in AWS.
's3' => [
'key' => '',
'secret' => '',
'bucket' => '',
'region' => 'us-east-2' // aka, "US East (Ohio)" https://docs.aws.amazon.com/general/latest/gr/rande.html
'path' => '',
]
*/
],
];Logging to PHP's error_log or custom directory
Remote Backups
Last updated