Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
Difference between revisions of "EPP/Obsolete/Wizard/Logging (log4j)"
< EPP | Obsolete/Wizard
(New page: The EPP Wizard uses [http://logging.apache.org/log4j/1.2/index.html log4j] for logging via Orbit. The logging can be configured by setting a system property to the filename of a log4j con...) |
m (Jonah.kichwacoders.com moved page EPP/Wizard/Logging (log4j) to EPP/Obsolete/Wizard/Logging (log4j): Obsolete) |
||
(2 intermediate revisions by the same user not shown) | |||
Line 5: | Line 5: | ||
For more information concerning configuration refer to [http://logging.apache.org/log4j/1.2/manual.html the log4j manual]. | For more information concerning configuration refer to [http://logging.apache.org/log4j/1.2/manual.html the log4j manual]. | ||
+ | |||
+ | Sample log4j.properties: | ||
+ | |||
+ | log4j.rootLogger=debug, stdout, R | ||
+ | |||
+ | log4j.appender.stdout=org.apache.log4j.ConsoleAppender | ||
+ | log4j.appender.stdout.layout=org.apache.log4j.PatternLayout | ||
+ | |||
+ | # Pattern to output the caller's file name and line number. | ||
+ | log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %5p [%t] (%F:%L) - %m%n | ||
+ | |||
+ | log4j.appender.R=org.apache.log4j.RollingFileAppender | ||
+ | log4j.appender.R.File=eppwizard.log | ||
+ | |||
+ | log4j.appender.R.MaxFileSize=100KB | ||
+ | # Keep one backup file | ||
+ | log4j.appender.R.MaxBackupIndex=1 | ||
+ | |||
+ | log4j.appender.R.layout=org.apache.log4j.PatternLayout | ||
+ | log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %t %c - %m%n | ||
+ | |||
+ | |||
+ | [[Category:EPP]] |
Latest revision as of 21:39, 6 May 2021
The EPP Wizard uses log4j for logging via Orbit.
The logging can be configured by setting a system property to the filename of a log4j configuration file
-Dlog4j.configuration=file:log4j.properties
For more information concerning configuration refer to the log4j manual.
Sample log4j.properties:
log4j.rootLogger=debug, stdout, R log4j.appender.stdout=org.apache.log4j.ConsoleAppender log4j.appender.stdout.layout=org.apache.log4j.PatternLayout # Pattern to output the caller's file name and line number. log4j.appender.stdout.layout.ConversionPattern=%d{ISO8601} %5p [%t] (%F:%L) - %m%n log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.File=eppwizard.log log4j.appender.R.MaxFileSize=100KB # Keep one backup file log4j.appender.R.MaxBackupIndex=1 log4j.appender.R.layout=org.apache.log4j.PatternLayout log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %t %c - %m%n