core icon indicating copy to clipboard operation
core copied to clipboard

Ship with minimal log4j2.xml

Open wezell opened this issue 8 years ago • 4 comments

We need to ship (when you download dotCMS) with a minimal log4j2 config that spits everything out to the console for 2 reasons:

  1. Our current log4j2 setup is confusing and can obfuscate errors from our developers, testers and users.
  2. As we move towards containerization, spitting everything out to STDOUT is the expected behavior.

We can still include our bigger log4j config as the production example.

wezell avatar Mar 08 '18 16:03 wezell

This also only shows the parent package and class name of the log writer - which makes for smaller logs.

wezell avatar Mar 08 '18 16:03 wezell

PR: https://github.com/dotCMS/core/pull/13815

jgambarios avatar Mar 14 '18 16:03 jgambarios

Passed QA. Performed several actions on the system such as push publish, integrity checker, cluster configuration, create/update/delete content types, create/clone existing sites, workflow actions, licensing, categories, tags, ES search, time machine, etc. System seems to displaying every log in console appropriately. Tested on master branch / Mac OS 10.10 / Postgres 9.6.6 / Chrome v64.0.3282.167 / Tomcat 8 / Java 8.6

shaydotcms avatar Mar 19 '18 20:03 shaydotcms

The following documentation also needs to be updated:

  • "Logs" tab in the "Maintenance" screen: Explain why the default config shows no logs.
  • Log4j documentation: Point to the production example log4j.xml file.

john-thomas-dotcms avatar Apr 04 '18 16:04 john-thomas-dotcms