Two Laptop Bag
The moose likes Other Open Source Projects and the fly likes log4j problem writing to a log file. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "log4j problem writing to a log file. " Watch "log4j problem writing to a log file. " New topic

log4j problem writing to a log file.

John Smith

Joined: Oct 07, 2003
Posts: 15
this is my I am using JBoss. I see log messages in my JBoss console, but for some reason, it is not writing to a log file.

I am not that familiar with the log4j. It would be grateful if someone can fix it.

log4j.rootLogger=INFO, stdout, R


# Pattern to output the caller's file name and line number.
log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F:%L) - %m%n




log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n
Paul Clapham

Joined: Oct 14, 2005
Posts: 19891

Possibly JBoss is not even using that properties file. Do the log entries you see match the conversion pattern you used? Try changing the conversion pattern to something different and see if the format of the log entries changes. Those tests should tell you whether JBoss is using your properties file or some other properties file.
I agree. Here's the link:
subject: log4j problem writing to a log file.
It's not a secret anymore!