weblogic 10.x - Log4j on weblogic10 only logs to console -
i'm trying print log messages file. @ point, logs console not ideal future support.
my log4j.properties file looks this:
log4j.rootcategory=debug, stdout, logfile
log4j.appender.stdout=org.apache.log4j.consoleappender log4j.appender.stdout.layout=org.apache.log4j.patternlayout log4j.appender.stdout.layout.conversionpattern=%d %p [%c] - <%m>%n
log4j.appender.logfile=org.apache.log4j.rollingfileappender
log4j.appender.logfile.file:/apps/wlserver10/bpdomain/servers/hrserver/logs/hrserver.log log4j.appender.logfile.maxfilesize=4mb log4j.appender.logfile.maxbackupindex=10 log4j.appender.logfile.append=true log4j.appender.logfile.layout=org.apache.log4j.patternlayout log4j.appender.logfile.layout.conversionpattern=%d %p [%c] - %m%n
this works fine on local weblogic instance, when try deploy server doesn't write log file.
can please me find why? in advance yols
is missing =
after file instead of :
?
log4j.appender.logfile.file:/apps/wlserver10/bpdomain/servers/hrserver/logs/hrserver.log
Comments
Post a Comment