Global navigation

   Documentation Center
   eZ Studio & eZ Platform
     User Manual
     Technical Manual
     Glossary
   eZ Publish 4.x / legacy

 
eZ Publish (5.x)

eZ Publish 5.x | For eZ Platform & eZ Studio topics see Technical manual and User manual, for eZ Publish 4.x and Legacy topics see eZ Publish legacy

Skip to end of metadata
Go to start of metadata

Introduction

The current implementation includes a logging mechanism for debugging purposes in development environments, which monitors Stash, introduced in Stash-bundle, and the persistence cache mechanism.

Logging is enabled by default, except for the production environment to avoid excessive memory usage on production environments.

 

Usage example

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 (true or false), so, if you desire to turn off the logging mechanism you can use the following configuration in ezpublish_dev.yml:

ezpublish_dev.yml

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 $maxFiles".

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 /ezpublish/config/config.yml

1 Comment

  1. It seems "logging" setting is not working anymore as it was replaced by "tracking" 

    https://github.com/tedious/TedivmStashBundle/commit/df48e3b61d489854d39473eb1e3a2f1aade9ddd4

    Edit: This change will affect eZ community 2014.07 and the following versions. 2014.05 and before can work with logging. So i guess this change in doc should be added for 5.4 only.