Hi All;
I would like to write to a specific file when logging from a specific class.
Below is my properties file. The class that needs the special behavior is in
the model.notification package. It should be handled with the emailAppender,
which in turn should only write INFO messages to the
If you remove 'emailAppender' from your log4j.rootLogger config then
part of your problem should be fixed. I had a similar situation and used
the following code:
log4j.rootLogger=DEBUG, EXTERNAL
log4j.logger.internal=DEBUG,INTERNAL
log4j.additivity.internal=false
where I defined 2 separate
This problem was fixed in (I believe) jBoss 4.0.2. Of course in that
same versions they screwed up other stuff... (i.e.: Hibernate would no
longer work if you had it in your application) so you may or may not
want to use that version anyway. But they are aware of the issues and I
hope they will
Hello people,
here is the scenario, which causes console logging to
stop.
Remote application (RMI server App), which is made by
third party is started by batch file. Configuration
file for log4j is found during startup and loggers are
created, by using custom log4j.loggerFactory
I entered some
The log4j committers recently voted to accept the following release schedule
for future versions of log4j:
1) Release 1.2.11 with JMS build fix. Timeframe is immediate, within the
next week.
We should have a build candidate by this Monday, with the release before the
end of the week. Andy
If I understand correctly, you want to set session/user specific information
per request? Since the MDC is stored in ThreadLocal, I think you will need
to use a servlet filter to set and unset the MDC for each request. And yes,
how threads are assigned to handle requests, etc is very
Responding to my own thread:
I made the change below to my props file and everything is fine now.
#general stuff
log4j.logger.model.notification=INFO, emailAppender
log4j.additivity.model.notification=false
log4j.logger.beans=DEBUG, generalAppender
log4j.logger.model=DEBUG, generalAppender
So what's the difference between 1.2.8 and 1.2.12 versions?, are we going back
on version numbers?. I am confused
srini
-Original Message-
From: Mark Womack [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 18, 2005 12:34 PM
To: log4j-user@logging.apache.org
Subject: [INFO] Log4j
The version number is 1.2.12, not 1.2.1.2, so 1.2.12 will be a newer version
than 1.2.8. BTW, the latest released version is 1.2.9.
Since we have not decided on the complete set of bug fixes yet, I can't
answer this with complete certainty. It will contain the change to support
a new level,
i want to log the session id, and any other info from the session that i
choose so that i can sort my logs per session.
i'll check out the sandbox.
On 5/18/05, Mark Womack [EMAIL PROTECTED] wrote:
If I understand correctly, you want to set session/user specific
information
per request?
There is an example of putting stored cookie information into the MDC. You
could easily modify it to use information from the session instead.
http://cvs.apache.org/viewcvs.cgi/logging-log4j-sandbox/src/java/org/apache/
log4j/servlet/CookieMDCFilter.java?view=markup
It doesn't do anything to
11 matches
Mail list logo