[RotationSettings]
Available since Exponential 6.0.15 (in development, not in a release yet).
Summary
The group [RotationSettings] of settings/logviewer.ini.
File
settings/logviewer.ini; override it in settings/override/logviewer.ini.append.php, in a siteaccess or in an extension.
Settings
| Setting | Default | Description |
|---|---|---|
| MaxSize[<key>] | 404=10485760; security=10485760; csp=10485760 | The limits of each log for rotation, pruning and compression on demand (./console exp:logs --rotate, --prune, --compress; the log viewer's actions) and by the cronjob part "logs" (php runcronjobs.php logs; in no default part). Guide: doc/eng-us/features/6.0/log-rotation.md. A log without an entry here takes site.ini [FileSettings]: MaxSize[<key>] bytes; the cronjob part rotates a log bigger than this (LogFileMaxSize, 2097152) Keep[<key>] archives kept, .1 .. .N (LogFileRotateCount, 3) Compress[<key>] enabled | disabled: archives from .2 on compressed to .gz (LogFileCompress, disabled) MaxAgeDays[<key>] a prune removes archives older than this; 0: no age limit (LogFileMaxAge, 0) The key is the log's key in the viewer's permalinks: error, debug, storage, site-storage ... e.g. Keep[debug]=1 MaxSize[debug]=10485760 The request logs (doc/eng-us/features/6.0/request-logs.md) keep more and older archives than the kernel default. The writer of 404.log and security.log still rotates at site.ini [FileSettings] LogFileMaxSize while it writes. The size-triggered rotation of eZDebug and eZLog while a log is written uses the site.ini values only. |
| Keep[<key>] | 404=5; security=5; csp=5 | |
| Compress[<key>] | 404=enabled; security=enabled; csp=enabled | |
| MaxAgeDays[<key>] | 404=30; security=90; csp=30 |
See also
Generated example: logviewer.ini [RotationSettings]
Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this group. The descriptions are the comment lines of settings/logviewer.ini.
Contributors
- Graham Brookins Updated
Comments
Add a comment