Re: UTF-8 Logging

2006-05-11 Thread paul womack
Sam wrote: Thanks for the follow up. I did some more testing and using the property ' log4j.appender.ErrorMonitor.Encoding=UTF-8' did work correctly. I was able to see UTF-8 chars in my logs. The confusing bit is that the rolling file appender is outputting a file that does not have any bits

Re: Logger vs. Appender

2006-05-11 Thread paul womack
Curt Arnold wrote: On May 8, 2006, at 1:33 AM, David Hosier wrote: ... Anyway...thanks again for the reply, looking forward to hearing other people's thoughts. I'd suggest creating a static helper class that generates a message object and then calls logger methods. The message

how to get log4j to work with struts.

2006-05-11 Thread Zheng Wen Zhe
Hi all, I wanna use logging facility in my struts framework, and I have log4j-1.2.13.jar xerces.jar files in place. But, after I created log4j.xml, I always get error on this following line: !DOCTYPE log4j:configuration SYSTEM log4j.dtd It says the system could not found file log4j.dtd.

Re: how to get log4j to work with struts.

2006-05-11 Thread paul womack
Zheng Wen Zhe wrote: Hi all, I wanna use logging facility in my struts framework, and I have log4j-1.2.13.jar xerces.jar files in place. But, after I created log4j.xml, I always get error on this following line: !DOCTYPE log4j:configuration SYSTEM log4j.dtd It says the system could not found

Re: Can I distribute log4j from my Maven repository?

2006-05-11 Thread Curt Arnold
See the Apache Licensing and Distribution FAQ at http:// www.apache.org/foundation/licence-FAQ.html. There are publicly accessible Maven repositories that distribute log4j, so at least those entities felt they were could distribute log4j through a publicly accessible Maven repository and

Stuck with file format!!!

2006-05-11 Thread Kailash KN
Hi, I would like to have my Debug and Info messages into Debug.log and Info.log respectively, this works fine, but now i would like to have it in the log files with the format- -MM-dd-Debug.log and -MM-dd-Info.log respectively. how do i go about it??? Any help would be greatly

Re: Stuck with file format!!!

2006-05-11 Thread dirk ooms
in log4j1.3, i do something like this to put the date in the filename appender name=myAppender class=org.apache.log4j.rolling.RollingFileAppender param name=Threshold value=DEBUG/ rollingPolicy class=org.apache.log4j.rolling.TimeBasedRollingPolicy param name=FileNamePattern

Re: Stuck with file format!!!

2006-05-11 Thread James Stauffer
Create a new appender. I wrote a 1.2 appender that can do that. 1.3 may be able to do this. On 5/11/06, Kailash KN [EMAIL PROTECTED] wrote: Hi, I would like to have my Debug and Info messages into Debug.log and Info.log respectively, this works fine, but now i would like to have it in the

RE: Logger vs. Appender

2006-05-11 Thread David Hosier
Yes, it's working for me like a charm as well. I just created a class hierarchy for logging events. Then I created an Appender and narrowed that appender to only be used with very specific Categories. Then in my code I create a Logger for those specific Categories and pass instances of my

why my logger doesn't get executed??

2006-05-11 Thread Zheng Wen Zhe
Hi all, This is my A Java class with logger resides. My question is why those loggers don't execute when this class is called? Cheers, Jason import org.apache.log4j.Logger; .. public class LoginAction extends Action { static Logger logger

RE: why my logger doesn't get executed??

2006-05-11 Thread Bender Heri
How does your config file look? Heri -Original Message- From: Zheng Wen Zhe [mailto:[EMAIL PROTECTED] Sent: Thursday, May 11, 2006 5:16 PM To: 'Log4J Users List' Subject: why my logger doesn't get executed?? Hi all, This is my A Java class with logger resides. My question

RE: why my logger doesn't get executed??

2006-05-11 Thread Zheng Wen Zhe
I put the followings in the web.xml. I use struts framework, and didn't touch the strut-config.xml. init-param param-namelog/param-name param-value/WEB-INF/log4j.xml/param-value /init-param -Original Message- From: Bender Heri [mailto:[EMAIL PROTECTED] Sent: 11 May 2006

Re: how to get log4j to work with struts.

2006-05-11 Thread Jacob Kjome
Your XML editor tells you about this error or do you get a java exception at runtime saying this? Ignore the former, and I'd be very surprised if you see the latter. Jake Quoting paul womack [EMAIL PROTECTED]: Zheng Wen Zhe wrote: Hi all, I wanna use logging facility in my struts

RE: why my logger doesn't get executed??

2006-05-11 Thread Jacob Kjome
What exactly do you expect that to do? Put log4j.jar in WEB-INF/lib and log4j.xml in WEB-INF/classes and Log4j will auto-configure itself (assuming you are using a server like Tomcat where it uses child-first classloading behavior). Jake Quoting Zheng Wen Zhe [EMAIL PROTECTED]: I put the

Re: Stuck with file format!!!

2006-05-11 Thread Kailash KN
Thanks Dirk and James, but i use a property file not an XML file, anyways ill give it a shot. james, i did not understand your reply, could be please be more precise. Thanks Regards, Kailash.K.N. - Original Message - From: dirk ooms [EMAIL PROTECTED] To: Log4J Users List