Hacker News new | ask | show | jobs
by cnorthwood 1651 days ago
because Log4J is also used by libraries. Which means you can configure the log level and capture logs from libraries and dependencies you use in a global configuration.
1 comments

You really shouldn't use log4j in libraries. Instead use slf4j in a library and log4j (or whatever implementation for the facade you prefer) in the application using the library.
Tell that to thousands of existing libraries.