aspose file tools*
The moose likes Other Open Source Projects and the fly likes log4j - No appenders could be found for logger 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 "log4j - No appenders could be found for logger" Watch "log4j - No appenders could be found for logger" New topic
Author

log4j - No appenders could be found for logger

Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
I am getting below error while trying to write through log4j



Can you please let me know what should be causing this? I have log4j.properties in class-path.


Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9383
    
    2

Try putting that log4j.properties under src/main/resources directory and check if that helped solving the error?


SCJP 1.4, SCWCD 1.4 - Hints for you, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Akhilesh Trivedi
Ranch Hand

Joined: Jun 22, 2005
Posts: 1526
I am on IBM RAD. Tried creating src/main/resources and pasted the properties file there. It doesn't work.
Joe Harry
Ranch Hand

Joined: Sep 26, 2006
Posts: 9383
    
    2

Akhilesh Trivedi wrote:I am on IBM RAD. Tried creating src/main/resources and pasted the properties file there. It doesn't work.


Where are you configuring the appender for "logger" I do not see that in your log4j.properties. In your log4j.properties, you have an appender named A1, but where is logger?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: log4j - No appenders could be found for logger