Hi Ceki,
Thank for the help.
I am running jdk 1.3. and the servlets are running on Orion (J2EE platform).
I am using log4j version 1-1b
I noticed that jdk 1.4. has a java.util.logging.getThreadID() but it's still
in beta...
I am running on Linux RedHat 7.0.
With perl I get the real process id
Is there a public identifier defined for the log4j.dtd? It would be handy
for code (like mine) that is using a custom EntityResolver. Something like
(borrowed from Struts):
-//Apache Software Foundation//DTD Log4J Configuration 1.0//EN
The following DOCTYPE declarations could then be used inte
Hi Ceki,
my application runs under tomcat-3.2.2 thus it is a single application
but of course with several threads but one JVM. (My platform is
Red-Hat-6.0 and the latets IBM-JRE-1.1.8)
Where the strange log appears is a very simple code:
...
final static private Category log =
Category.getIns
I'm getting the following error during the parsing of my XML configuration
file using the supplied DTD.
Error: URI=jndi:/localhost/pulse/WEB-INF/log4j.xml Line=10: Undeclared
prefix: "log4j:configuration".
171 [main] ERROR pulse.servlet.ContextServlet - error parsing logging
configuration file
j
I don't feel competent to comment on your classpath explanation, but I
do have the following empirical information.
Using log4j-1.1.1 with Tomcat 3.2.1, putting log4j.jar into WEB-INF/lib
and log4j.properties into WEB-INF/classes, the static initializer does
not find log4j.properties. Changing DE
I tried that, but it only returns the name that isn't unique in my case
(it's the same for the servlets).
Eddie
- Original Message -
From: Zsolt Koppany <[EMAIL PROTECTED]>
To: LOG4J Users Mailing List <[EMAIL PROTECTED]>
Sent: Wednesday, May 30, 2001 6:07 PM
Subject: Re: Is it a bug or
have you every tried the mehod DOMConfigurator.configureAndWatch(String
configFileName).
jochen
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
When it comes to loading files from the classpath, note the difference between
myClass.getClassLoader().getResource()
and
myClass.getResource()
The former loads wrt to the classpath root, but the latter loads wrt to the
location of the class bytecode file (typically).
i.e.,
Welcome to the world of Java. Java has gives no guarantees on the ordering of threads.
The creation of the LoggingEvent and its logging are not atomic. It is possible for
Thread-12 to create the logging event at 16:28:17,711, loose control to Thread-6, have
thread-6 log the message with the ti
I have used the PropertyConfigurator with a runtime properties file
correctly, but I can't get the same behaviour from the DOMConfigurator. The
DOMConfigurator parses the XML file at the start of the application
properly, but when I modify the file at runtime it does not accept the
changes. I am
Hi,
[[[A disclaimer: I've searched the archives for the solution to this but
found nothing that I like. And Bugzilla is down too, so I'm sorry if this
has been covered to death in this list.]]]
I'm having trouble with init of log4j for a servlet running in Tomcat. log4j
can't find the default co
%t is for thread id.
Eddie wrote:
>
> Hi Jim,
>
> I notice in your logging that you print the thread id, or something simalar,
> ho do yo do that ??
>
> I want to print the process id (thread id) but don't know how to do that,
> neither can I find something in the Thread class of how to retri
I saw the code sent by Jim Moore which is much better way of doing than what
I was thinking.
I was thinking of some not-so-elegant way, where you could subclass
category, introduce a setSubject method in there, or override methods such
as info, debug etc to take the message and subject. So if you
hello,
we use log4j in the webapp of our application deployed in weblogic.
now we get a ClassNotFound exception deploying the ear/war with the
log4j.jar in the WEB-INF/lib of the war.
any idea how to fix this problem?
thanks,
jochen
---
Hi Jim,
I notice in your logging that you print the thread id, or something simalar,
ho do yo do that ??
I want to print the process id (thread id) but don't know how to do that,
neither can I find something in the Thread class of how to retrieve that.
Any idea ??
- Original Message -
I guess I could. What I was getting confused over was that the subject
field is declared in the log4j.properties file.
If I follow you correctly then I could subclass the smtp appender class and
then on the renderLogMessage (?) make a call to the setSubject method to
overwrite the one declared i
You can't with what's in the disribution. Here's one I wrote, though. Take
a look at doPatternSubst.
-Jim Moore
===
import org.apache.log4j.*;
import org.apache.log4j.helpers.*;
import org.apache.log4j.spi.*;
import java.util.*;
import javax.mail.*;
import javax.mail.internet.*;
/**
* Se
Um, since the third line in you configuration says
log4j.appender.A2.Append=false
then not appending to your log file is definately what you're telling it to
do.
Taht said, though, something odd does appear to be going on. So others that
read this don't have to read the log file, here's the fi
Could you use the setSubject method on smtp appender?
-Original Message-
From: Gray Jones [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, May 30, 2001 10:05 AM
To: LOG4J Users Mailing List
Subject: dynamic subject with smtp appender
Hello,
Does anybody know if you can somehow dynamically c
Hello,
Does anybody know if you can somehow dynamically create the subject field of
an smtp log? For instance we are using an smtp appender to send emails of
exceptions to the development group. Our exception class has an id and
description field which would be nice to include in the subject fi
Hi,
here I attach the log (cb.log) and configuration (log.cfg) files. The
second line of the log file was written at '16:28:50,581' and the next
line at '16:28:17,711'. I do know that the timestamps are ok. I thought
that the log will always appended to the end of the log file.
Do I misunderstan
21 matches
Mail list logo