GeeCON Prague 2014*
The moose likes Other Open Source Projects and the fly likes Get error information about log4j, please help me. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Get error information about log4j, please help me. " Watch "Get error information about log4j, please help me. " New topic
Author

Get error information about log4j, please help me.

marshal ma
Greenhorn

Joined: May 31, 2004
Posts: 23
log4j:ERROR No output target set for appender named "A4"

when I start weblogic server, it give the above wrong information. Who knows what reason it may be?

In configure file, I set properties as followings:

log4j.rootCategory=INFO,A4

log4j.appender.A4=org.apache.log4j.FileAppender
log4j.appender.A4.file=PMTinXMLformat.log
log4j.appender.A4.layout=org.apache.log4j.xml.XMLLayout
log4j.appender.A4.append=false

Thanks for your help!

marshal
marshal ma
Greenhorn

Joined: May 31, 2004
Posts: 23

found the problem,
log4j.appender.A4.file=PMTinXMLformat.log
should be log4j.appender.A4.File=PMTinXMLformat.log

have you found their difference. Only a lower case problem make me spend hours.

Good luck to you!
 
GeeCON Prague 2014
 
subject: Get error information about log4j, please help me.