Enonic version: 6.11.1
OS: Windows 8.1
We need a piece of info included in every log message made in the server side js-files in our project. Is there a way to do that without having to change the content of the log.debug() calls or replace all the calls with a custom logger?
Is there a way to customize the included logger?
XP uses Logback for the logging. You can try to configure it. See documentation here. It has some filtering options.
To override the config copy your modified file to
The default config is in the install directory, in
But I think it might be easier to just create your own library for logging, that wraps over
log.xxx() and adds the extra info.
This topic was automatically closed after 24 hours. New replies are no longer allowed.