Conversation

java.util.logging is easy to use and has everything you would ever need. If you want fancy processing/triggers, you should use rsyslog. logger.warning("message"); logger.fine(() -> "lazy evaluation: " + parameter); That high-level API dynamically adds class/method name itself.
1
26
I can't understand using ridiculously bloated and over-engineered third party dependencies when there's a perfectly good standard library API. Standard library has lazy string formatting but it obviously doesn't use it in-band but rather only for methods passing parameters...
1
12
It has structured data for exceptions and parameters. It moved to encouraging lambdas for lazy evaluation since structured parameters are rarely helpful. If you don't like the high-level API, you can trivially make your own wrappers with the low-level structured LogRecord API.
1
6
Replying to
Android programmers are perfectly happy using android.util.Log with almost no usage of those bloated third party libraries. java.util.logging is a lot more capable than that but for some reason server-side/enterprise Java programmers love their complexity and over-engineering.
6