Help !

2003-01-16 Thread Sébastien Hiblot
), true)); } catch (IOException e) { } To log something : Trace t = new Trace(this.getClass().toString()) ; t.debug(My message); The first time, we call the page, the log contain the good thing : 20030116-12:00:00 My message But the second time we call the page, 30 sec after, we have

new logging level for log4j 1.2.5

2003-01-16 Thread Bansemir, Carsten
Hi, I would like to add an extra logging level to log4j, and I found an implementaion of a trace level, but this works only with older versions of log4j. Does such an Implementation (or another with the same functionality) also exist for Versions 1.2.5 ? -- To unsubscribe, e-mail:

Re: Help !

2003-01-16 Thread Neil Pitman
t = new Trace(this.getClass().toString()) ; t.debug(My message); The first time, we call the page, the log contain the good thing : 20030116-12:00:00 My message But the second time we call the page, 30 sec after, we have in the log: 20030116-12:00:00 My message 20030116-12:00:30 My message

RE: Help !

2003-01-16 Thread Ebersole, Steven
(this.getClass().toString()) ; |t.debug(My message); | |The first time, we call the page, the log contain the good thing : |20030116-12:00:00 My message | |But the second time we call the page, 30 sec after, we |have in the log: |20030116-12:00:00 My message |20030116

RE: Help !

2003-01-16 Thread Sébastien Hiblot
(IOException e) { |} | |To log something : |Trace t = new Trace(this.getClass().toString()) ; |t.debug(My message); | |The first time, we call the page, the log contain the good thing : |20030116-12:00:00 My message | |But the second time we call the page, 30

Re: use my own appender

2003-01-16 Thread Steffen Koehler
Thanks, it works fine. Steffen I think what you're looking for is LogManager.getRootLogger.addAppender(your appender here) On Tue, 2003-01-14 at 14:26, Steffen Koehler wrote: At version 1.1.3 I have written my own appender, a class that extends the AppenderSkeleton. Than I have activated the

RE: Help !

2003-01-16 Thread Ebersole, Steven
(this.getClass().toString()) ; | |t.debug(My message); | | | |The first time, we call the page, the log contain |the good thing : | |20030116-12:00:00 My message | | | |But the second time we call the page, 30 sec after, we | |have in the log

Move from 1.1.3 to 1.2.7 - no such method error

2003-01-16 Thread Krzysztof Krzos
I replace all log4j.jar from v 1.1.3 to 1.2.7 my applications is good compile but when I want to call first time MDC.put I receive this error: I've checked all places where i can not replace old log4j jar file but everything was replaced. Have you any ideas whre is the problem? on

Re: Move from 1.1.3 to 1.2.7 - no such method error

2003-01-16 Thread Krzysztof Krzos
I use jdk1.3.1 I replace all log4j.jar from v 1.1.3 to 1.2.7 my applications is good compile but when I want to call first time MDC.put I receive this error: I've checked all places where i can not replace old log4j jar file but everything was replaced. Have you any ideas whre is the

is log4j provoking segmentation violation in JServ?

2003-01-16 Thread Garhoefer Andreas
hi! I just introduced log4j into our application (Servlets based on JServ) instead of an inhouse implemented logger.Could you please have a look at this message in the JServ-error.log (without log4j the system works) : SIGSEGV 11 segmentation violation si_signo [11]: SEGV si_errno [0]:

Re: Move from 1.1.3 to 1.2.7 - no such method error

2003-01-16 Thread Krzysztof Krzos
Mea culpa Sorry, of course I didn't replace all jar... Now is OK. Chris - Original Message - From: Krzysztof Krzos [EMAIL PROTECTED] To: Log4J Users List [EMAIL PROTECTED] Sent: Thursday, January 16, 2003 6:01 PM Subject: Re: Move from 1.1.3 to 1.2.7 - no such method error I use

Re: log4j.xml and variable substitution

2003-01-16 Thread Jenny
Hi, I remember sometime back there was a post states that we can do it like: param name=DatePattern value='c:/log/${var}/'yyMMdd'.log' / The var can be from system variable. But I have a question here. I configure log4j with the server, so the configure file are read on the startup. but at that

RE: log4j.xml and variable substitution

2003-01-16 Thread Thomas Muller
You need to set the relevant System variable prior to log4j configuration, e.g. with the -D option to the VM. -- Thomas | -Original Message- | From: Jenny [mailto:[EMAIL PROTECTED]] | Sent: 16 January 2003 17:54 | To: Log4J Users List | Subject: Re: log4j.xml and variable

What jar(s) I need from Sun to do SMTPAppender

2003-01-16 Thread Wilfred Ho
Hi, First time to use a SMTPAppender. I have downloaded javamail-1.3 and specified smtp.jar and mailapi.jar in my classpath. My configuration is as following: log4j.appender.emailAppender=org.apache.log4j.net.SMTPAppender log4j.appender.emailAppender.Threshold=ERROR

RE: What jar(s) I need from Sun to do SMTPAppender

2003-01-16 Thread Thomas Muller
You need the JavaBeans Activation Framework (JAF)(activation.jar). Downloadable from http://java.sun.com/products/javabeans/glasgow/jaf.html. Hope this helps, -- Thomas | -Original Message- | From: Wilfred Ho [mailto:[EMAIL PROTECTED]] | Sent: 16 January 2003 18:03 | To: [EMAIL

RE: log4j.xml and variable substitution

2003-01-16 Thread Thomas Muller
Could you elaborate your requirement a bit? Don't think standard variable interpolation is the right way to do what you want. -- Thomas | -Original Message- | From: Jenny [mailto:[EMAIL PROTECTED]] | Sent: 16 January 2003 18:29 | To: Log4J Users List; [EMAIL PROTECTED] | Subject: RE:

How to give relative log file path -RollingFileAppender

2003-01-16 Thread balaji ganesan
Hi All, I'm using log4j-1.2.7 in my appln, deployed as a web appln in an application server. The following is the log4j.properties file i'm using. log4j.appender.R=org.apache.log4j.RollingFileAppender log4j.appender.R.MaxFileSize=100KB log4j.appender.R.MaxBackupIndex=2

RE: How to give relative log file path -RollingFileAppender

2003-01-16 Thread Thomas Muller
| 1. How do i specify a relative path to this file name, so that it can be | created under j2ee/home/log/test.log. This j2ee/home may be under some | other top level dir ? Before log4j is configured, insert the application server home path in the System properties, e.g. System.setProperty(

RE: How to give relative log file path -RollingFileAppender

2003-01-16 Thread Thomas Muller
| 1. My first issue is, how does it gets this path, based on what | nbsp;system parameter | it takes up this value /j2ee/home/ and prepend it to log file ? The /j2ee/home is probably the VMs current working directory, this is why you find your files under this directory (unless you have specified

Can't send e-mail

2003-01-16 Thread Wilfred Ho
Hi, I use a SMTPAppender to send e-mail. It can do so only if I send to internal co-worker. If I send to outside (e.g. [EMAIL PROTECTED]) where the to e-mail address is correct, I got log4j:ERROR Error occured while sending e-mail notification. javax.mail.SendFailedException: Sending failed;