dcsimg
Using the log4j ConsoleAppender
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Java_Newbie
Posted On:   Thursday, September 14, 2006 08:08 AM

I can't seem to get log4j to log to my console window. I'm using IBM Rational Application Developer 6. Below is my log4j xml file: <?xml version="1.0" encoding="UTF-8" ?> -->    More>>


I can't seem to get log4j to log to my console window. I'm using IBM Rational Application Developer 6. Below is my log4j xml file:


			
<?xml version="1.0" encoding="UTF-8" ?>




















































































































































Can anyone help me with this?


Thanks    <<Less

Re: Using the log4j ConsoleAppender

Posted By:   Mahesh_Ramamurthy  
Posted On:   Friday, September 15, 2006 04:25 PM

Hi

Not sure about the xml. I use the log4j.properties file.
I have my consoleappender set as


log4j.rootCategory = info,stdout

log4j.appender.stdout=org.apache.log4j.ConsoleAppender

log4j.appender.stdout.layout=org.apache.log4j.PatternLayout

# Pattern to output the caller's file name and line number.

log4j.appender.stdout.layout.ConversionPattern=%5p [%t] (%F%L) - %m%n

Hope this helps

Mahesh

About | Sitemap | Contact