logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vfpribeiro <vfpribe...@hotmail.com>
Subject log4j in diferent systems
Date Thu, 12 Mar 2009 14:17:22 GMT

Good day!

I have my log4j.properties configured to work with Apache 2.2.9 under
Windows Vista.

And I have changed the root "C://Logs//app-spring.log" for
"/var/log/logs4j/app-spring.log" to change for Apache 2.2.9 under Debian 5.

When I've changed the OS log4j stopped working. Why, I have to ask?
Thank you in advance

vfpribeiro

log4j.threshold=ALL
log4j.rootLogger=ALL, DebugAppender, InfoAppender,
WarnAppender,ErrorAppender

#Consola
#log4j.appender.stdout=org.apache.log4j.ConsoleApp ender
#log4j.appender.stdout.layout=org.apache.log4j.Pat ternLayout
#log4j.appender.stdout.layout.ConversionPattern=%c %d{ISO8601} -- %p -- %m%n

# arquivo TOTAL
log4j.appender.logfile.Append=false
log4j.appender.logfile=org.apache.log4j.RollingFil eAppender
log4j.appender.logfile.File=/var/log/logs4j/app-spring.log
log4j.appender.logfile.MaxFileSize=512KB
log4j.appender.logfile.MaxBackupIndex=1
log4j.appender.logfile.Append=false
log4j.appender.logfile.layout=org.apache.log4j.Pat ternLayout
log4j.appender.logfile.layout.ConversionPattern= %d{ISO8601} -- %p -- [%c]
%m%n%n

#DEBUG
log4j.appender.DebugAppender=org.apache.log4j.Roll ingFileAppender
log4j.appender.DebugAppender.File=/var/log/logs4j/app-debug.log
log4j.appender.DebugAppender.MaxFileSize=512KB
log4j.appender.DebugAppender.MaxBackupIndex=1
log4j.appender.logfile.Append=false
log4j.appender.DebugAppender.layout=org.apache.log 4j.PatternLayout
log4j.appender.DebugAppender.layout.ConversionPatt ern= %d{ISO8601} -- %p --
[%c] %m%n%n
log4j.appender.DebugAppender.Threshold=DEBUG

#INFO
log4j.appender.InfoAppender=org.apache.log4j.Rolli ngFileAppender
log4j.appender.InfoAppender.File=/var/log/logs4j/app-info.log
log4j.appender.InfoAppender.MaxFileSize=512KB
log4j.appender.InfoAppender.MaxBackupIndex=1
log4j.appender.InfoAppender.layout=org.apache.log4 j.PatternLayout
log4j.appender.InfoAppender.layout.ConversionPatte rn= %d{ISO8601} -- %p --
[%c] %m%n%n
log4j.appender.InfoAppender.Threshold=INFO

#WARN
log4j.appender.WarnAppender=org.apache.log4j.Rolli ngFileAppender
log4j.appender.WarnAppender.File=/var/log/logs4j/app-warn.log
log4j.appender.WarnAppender.MaxFileSize=512KB
log4j.appender.WarnAppender.MaxBackupIndex=1
log4j.appender.WarnAppender.layout=org.apache.log4 j.PatternLayout
log4j.appender.WarnAppender.layout.ConversionPatte rn= %d{ISO8601} -- %p --
[%c] %m%n%n
log4j.appender.WarnAppender.Threshold=WARN

#ERROR
log4j.appender.ErrorAppender=org.apache.log4j.Roll ingFileAppender
log4j.appender.ErrorAppender.File=/var/log/logs4j/app-error.log
log4j.appender.ErrorAppender.MaxFileSize=512KB
log4j.appender.ErrorAppender.MaxBackupIndex=1
log4j.appender.ErrorAppender.layout=org.apache.log 4j.PatternLayout
log4j.appender.ErrorAppender.layout.ConversionPatt ern= %d{ISO8601} -- %p --
[%c] %m%n%n
log4j.appender.ErrorAppender.Threshold=ERROR
-- 
View this message in context: http://www.nabble.com/log4j-in-diferent-systems-tp22477298p22477298.html
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message