• 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
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Log4j ignores fileappender, writes to SystemOut

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

I have a problem with Log4j using Websphere 6.0. My module is configured with a properties file and all the logs were being sent to the appropriate file appender. Then something in our software changed and the logs are now being sent to SystemOut. As far as I can tell, nothing in the configuration has changed (i.e. file appender is still there, log4j still parses it on startup..). Under what circumstances would something like this happen? Does this behaviour mean that my appender is no longer in memory? (any way I can check at runtime?) I'm at wits end trying to debug this issue!

Thanks very much
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Can you post the contents of your log4j file? Also where in your application, do you place this file? Do you have any code that explicitly loads the log4j configuration file? If yes, please post the same.
 
Ranch Hand
Posts: 697
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Would you know if your application uses Commons Logging as a logging abstraction?

In that case the configuration for Commons logging might have changed to use JDK logging instead of Log4J.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic