Re: [log4j] Default configuration for 3.x

2022-06-13 Thread Stephen Webb
I recall my difficulties (many years ago), when first incorporating logging, working out what was a "good" logging configuration. I would have really appreciated a good out-of the box default. Now I think that the out-of-the box default should be * A root logger set to INFO * A rolling appender

Re: [log4j] Default configuration for 3.x

2022-06-13 Thread Ralph Goers
I seriously doubt there is a way to create a single “default” configuration. We could create a few though. For example, if you are running in a Kubernetes environment you almost certainly want to log JSON to the console (as much as I hate doing that). A better long term approach would be to

Re: [log4j] Default configuration for 3.x

2022-06-13 Thread Matt Sicker
Structured logging can look like syslog, JSON, or even like a properties file (for each event). The idea being that instead of merely a log string, there are key/value pairs to better detail the state being logged. — Matt Sicker > On Jun 13, 2022, at 13:20, Gary Gregory wrote: > > Let me

Re: [log4j] Default configuration for 3.x

2022-06-13 Thread Gary Gregory
Let me relate the path we took with some of our products. Ages ago, we started by logging just to the console, then customers would ask for help and we'd ask for logs, sometimes we got back a copy-paste, other times a screenshot, nothing helpful, so we then gave the users steps to enable file

[log4j] Default configuration for 3.x

2022-06-13 Thread Matt Sicker
Hey all, I was thinking we should figure out a more appropriate default configuration for 3.0. One idea I have would be to use a structured format by default along with more emphasis on using either audit events or messages to log structured data more directly. Besides that, there are other