Message-ID: <674171442.3494.1485853404278.JavaMail.confluence@ip-10-127-227-164> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_3493_2139561820.1485853404278" ------=_Part_3493_2139561820.1485853404278 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The current implementation includes a logging mechanism for debugging pu= rposes 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.
StashBundle logging, represented by the stash.logging
setti=
ng, and persistence cache logging, represented by the setting paramet=
ers.ezpublish.spi.persistence.cache.persistenceLogger.enableCallLogging, and are both enabled by default on development environments.
Both s=
ettings expect a boolean value (true
or false
), s=
o, if you desire to turn off the logging mechanism you can use the followin=
g configuration in ezpublish_dev.yml
:
stash: logging: false caches: default: handlers: - FileSystem inMemory: false registerDoctrineAdapter: false parameters: ezpublish.spi.persistence.cache.persistenceLogger.enableCallLogging: fa= lse=20
Be aware that using stash logging and persistence cache logging will req= uire additional memory. This should be used for debugging purposes only.
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<=
/code>".
But then, their own recommendation is to use "logrotate
" in=
stead of doing the rotation in the handler as you would have better perform=
ance.
If you decided to use Monolog's handler, it can be configured in /=
ezpublish/config/config.yml
monolog: handlers: main: type: rotating_file max_files: 10 path: "%kernel.logs_dir%/%kernel.environment%.log" level: debug=20