Subject | How to turn on logging... |
---|---|
Author | Robert DiFalco |
Post date | 2003-12-30T19:55:44Z |
I am including log4j-1.2.8.jar in my class path. I add this java
property:
-Dlog4j.configuration=file:/c:/apps/tnd/bin/log4j.properties
Then I add the following single line in the properties file:
log4j.logger.org.firebirdsql=INFO, DEBUG, INFO, WARN, ERROR, FATAL
What I get is this:
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.INFO
log4j:ERROR Could not instantiate appender named "INFO".
log4j:ERROR Could not find value for key log4j.appender.WARN
log4j:ERROR Could not instantiate appender named "WARN".
log4j:ERROR Could not find value for key log4j.appender.ERROR
log4j:ERROR Could not instantiate appender named "ERROR".
log4j:ERROR Could not find value for key log4j.appender.FATAL
log4j:ERROR Could not instantiate appender named "FATAL".
log4j:WARN No appenders could be found for logger (discovery).
log4j:WARN Please initialize the log4j system properly.
Can anyone think of what I may be doing wrong?
Thanks!
R.
property:
-Dlog4j.configuration=file:/c:/apps/tnd/bin/log4j.properties
Then I add the following single line in the properties file:
log4j.logger.org.firebirdsql=INFO, DEBUG, INFO, WARN, ERROR, FATAL
What I get is this:
log4j:ERROR Could not find value for key log4j.appender.DEBUG
log4j:ERROR Could not instantiate appender named "DEBUG".
log4j:ERROR Could not find value for key log4j.appender.INFO
log4j:ERROR Could not instantiate appender named "INFO".
log4j:ERROR Could not find value for key log4j.appender.WARN
log4j:ERROR Could not instantiate appender named "WARN".
log4j:ERROR Could not find value for key log4j.appender.ERROR
log4j:ERROR Could not instantiate appender named "ERROR".
log4j:ERROR Could not find value for key log4j.appender.FATAL
log4j:ERROR Could not instantiate appender named "FATAL".
log4j:WARN No appenders could be found for logger (discovery).
log4j:WARN Please initialize the log4j system properly.
Can anyone think of what I may be doing wrong?
Thanks!
R.