I am unable to get log4j to work. I am getting the
log4j:WARN No appenders could be found for logger (org.jppf.utils.SerializationHelperImpl).
log4j:WARN Please initialize the log4j system properly.
message. I assume this means that log4j is not finding the configuration file. I have included the config file in the client invocation, e.g.
java ... -Dlog4j.configuration=/home/jppf/client/config/log4j-client.properties
Note that I've used a fully qualified path (to be on the safe side).
Could this message indicate an error in the log4j config file? I've tried several versions of this file, but all yield the same error. E.g using the client config file from jppf.../demo/config:
### direct log messages to stdout ###
#log4j.appender.stdout=org.apache.log4j.ConsoleAppender
#log4j.appender.stdout.Target=System.out
#log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
#log4j.appender.stdout.layout.ConversionPattern=%d{ABSOLUTE} %5p %c{1}:%L - %m%n
### direct messages to file jppf-client.log ###
log4j.appender.JPPF=org.apache.log4j.FileAppender
log4j.appender.JPPF.File=jppf-client.log
log4j.appender.JPPF.Append=false
log4j.appender.JPPF.layout=org.apache.log4j.PatternLayout
#log4j.appender.JPPF.layout.ConversionPattern=%d{ABSOLUTE} [%-5p][%c.%M(%L)]: %m\n
log4j.appender.JPPF.layout.ConversionPattern=%d [%-5p][%c.%M(%L)]: %m\n
### set log levels - for more verbose logging change 'info' to 'debug' ###
log4j.rootLogger=INFO, JPPF
#log4j.rootLogger=DEBUG, JPPF
yields this error message.
thanks