i want to use the log 4j for logging in my jenkins plugins.However my 
plugin is unable to find the properties file even when i placeit in 
resource folder of plugin.
However when i do it using simple java program it creates log file as 
expected.

Following is the content of properties file

# Root logger option
log4j.rootLogger=INFO, file

# Direct log messages to a log file
log4j.appender.file=org.apache.log4j.RollingFileAppender



log4j.appender.file.File=C:\\logigng.log           
log4j.appender.file.MaxFileSize=10MB
log4j.appender.file.MaxBackupIndex=10
log4j.appender.file.layout=org.apache.log4j.PatternLayout
log4j.appender.file.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss} %-5p 
%c{1}:%L - %m%n

-- 
You received this message because you are subscribed to the Google Groups 
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to jenkinsci-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jenkinsci-users/fe7d306f-4c24-4349-8512-c87a5a2e2dce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to