KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
Since the official documentation for log4j is a broken link , and the getting started guide isn't helping me, I would like to know how to use two appenders with different log levels for the same logger, using a .properties file instead of an .xml one. For example, like this: log4j.rootLogger=debug, APPENDER_FILE, APPENDER_STDOUT I'm logging with two different appenders, but on the same log level ( DEBUG ). I would like to use an INFO log level for APPENDER_STDOUT , and a DEBUG log level for APPENDER_FILE . My question is similar to this , but unlike that question, I'm using the log4j.properties file, not the xml file.
Tags (comma-separated)
Save Edits
Cancel