• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Where are my log4j logs getting written to?

 
Ranch Hand
Posts: 436
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I'm using JBoss 5.1 on Mac 10.5.6. I have this log4j.xml file within my WAR file's classes directory ...




And within some of my Java classes, I have stuff like



Does anyone know where the logs actually get written to? I have looked in my stdout file but there is no log4j output there. Thanks, - Dave
 
Ranch Hand
Posts: 125
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It doesn't get written to anywhere other than the console, as the appender you are using is ConsoleAppender.

Use RollingFile appender and mentioned a file name to append.

Cheers
Aneesh
 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless you have configures JBoss AS to enable you to use your log4j.xml, your app's logs are governed by the settings in server/xxx/jboss-log4j.xml. If you have not changed jboss-log4j.xml, the logs for you app will appear in stdout and in server/xxx/log/server.log.

And one more thing, in AS 5.1.0, by default, only log entries of level INFO or higher are written to the log files. Your log entries are at the DEBUG level, so they are ignored.
 
Maybe he went home and went to bed. And took this tiny ad with him:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic