java:log4j
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:log4j [2014/12/24 09:42] – external edit 127.0.0.1 | java:log4j [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 79: | Line 79: | ||
# console | # console | ||
log4j.appender.console = org.apache.log4j.ConsoleAppender | log4j.appender.console = org.apache.log4j.ConsoleAppender | ||
+ | # to set specifically to output to the System error console | ||
+ | log4j.appender.console.target=System.err | ||
# set a layout for this appender (see at botton list of available layouts) | # set a layout for this appender (see at botton list of available layouts) | ||
log4j.appender.console.layout = org.apache.log4j.PatternLayout | log4j.appender.console.layout = org.apache.log4j.PatternLayout | ||
Line 88: | Line 89: | ||
# in this case, we will output he content to a file appender | # in this case, we will output he content to a file appender | ||
log4j.appender.A1 = org.apache.log4j.FileAppender | log4j.appender.A1 = org.apache.log4j.FileAppender | ||
+ | # OPTIONAL: a specific log level can be configured for | ||
+ | # this appender only | ||
+ | # log4j.appender.A1.threshold=ERROR | ||
log4j.appender.A1.file = c\:/ | log4j.appender.A1.file = c\:/ | ||
log4j.appender.A1.layout = org.apache.log4j.PatternLayout | log4j.appender.A1.layout = org.apache.log4j.PatternLayout |
java/log4j.1419414127.txt.gz · Last modified: 2022/12/02 21:02 (external edit)