java - How to use global log4j.xml -
i have java library uses log4j. library contains log4j.property file has following contents:
log4j.appender.stdout=org.apache.log4j.consoleappender log4j.appender.stdout.target=system.out log4j.appender.stdout.layout=org.apache.log4j.simplelayout log4j.rootlogger=info, stdout
the library used application, has own global log4j.xml.
i put lines in global log4j.xml:
<logger name="com.my.package"> <level value="info"/> </logger>
however, none of logs shown in log.
what's going wrong here?
many thanks.
2 things can think of:
- the log4j.xml file not on class path.
- you writing debug messages , logger set info.
Comments
Post a Comment