), 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
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:
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
(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
(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
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
(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
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
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
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]:
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
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
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
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
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
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:
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
| 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(
| 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
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;
20 matches
Mail list logo