Logging is enabled by default, except for the production environment to avoid excessive memory usage on production environments.
StashBundle logging, represented by the
stash.logging setting, and persistence cache logging, represented by the setting
parameters.ezpublish.spi.persistence.cache.persistenceLogger.enableCallLogging, and are both enabled by default on development environments.
Both settings expect a boolean value (
false), so, if you desire to turn off the logging mechanism you can use the following configuration in
Be aware that using stash logging and persistence cache logging will require additional memory. This should be used for debugging purposes only.
Error logging and rotation
eZ Publish uses the Monolog component to log errors, and it has a
RotatingFileHandler that allows for file rotation.
According to their documentation, it "logs records to a file and creates one logfile per day. It will also delete files older than
But then, their own recommendation is to use "
logrotate" instead of doing the rotation in the handler as you would have better performance.
If you decided to use Monolog's handler, it can be configured in