java:log4j
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
java:log4j [2012/10/26 12:28] – rlunaro | java:log4j [2022/12/02 21:02] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 8: | Line 8: | ||
# log4j.properties - log for java configuration file | # log4j.properties - log for java configuration file | ||
# | # | ||
- | # | + | # See complete example at http:// |
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 | ||
Line 191: | Line 195: | ||
~~DISQUS~~ | ~~DISQUS~~ | ||
- | |||
java/log4j.1351254484.txt.gz · Last modified: 2022/12/02 21:02 (external edit)