I have log4j set to log and all works well on the development machine. I have WODirectConnectEnabled=false on the development machine. When I deploy no logging appears.
Any suggestions pointing me in the right direction would be appreciated.
Thanks
Drew
This is in the Application constructor:
// Configure log4j PropertyConfigurator.configure("/Library/Preferences/log4j_cheetah.properties"); log = Logger.getLogger( Application.class ); log.info("Log4j has been initialized");
Here is the configuration file:
# Log4j configuration file.
# Available levels are DEBUG, INFO, WARN, ERROR, FATAL log4j.rootCategory=WARN, A2 #log4j.rootCategory=DEBUG, A1, A2, A3
#
# A1 is a ConsoleAppender #log4j.appender.A1=org.apache.log4j.ConsoleAppender #log4j.appender.A1.layout=org.apache.log4j.PatternLayout #log4j.appender.A1.layout.ConversionPattern=%-5p [%t] - %m%n
#
# A2 is a DailyRollingFileAppender log4j.appender.A2=org.apache.log4j.DailyRollingFileAppender log4j.appender.A2.file=/Library/Logs/Segment/segment.log log4j.appender.A2.datePattern='.'yyyy-MM-dd log4j.appender.A2.append=true log4j.appender.A2.layout=org.apache.log4j.PatternLayout log4j.appender.A2.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n
#
# A3 is a UDPAppender for sending logs as broadcast UDP packets #log4j.appender.A3=org.apache.log4j.net.UDPAppender #log4j.appender.A3.remoteHost=192.168.15.255 #log4j.appender.A3.port=8881 #log4j.appender.A3.layout=org.apache.log4j.PatternLayout #log4j.appender.A3.layout.ConversionPattern=%-5p %d{ISO8601} [%t] - %m%n |