Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "EPP/Obsolete/Wizard/Logging (log4j)"

(sample log4j.properties)
m
Line 25: Line 25:
 
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
 
  log4j.appender.R.layout=org.apache.log4j.PatternLayout
 
  log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %t %c - %m%n
 
  log4j.appender.R.layout.ConversionPattern=%d{ISO8601} %p %t %c - %m%n
 +
 +
 +
[[Category:EPP]]

Revision as of 06:37, 18 June 2009

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

Back to the top