- Original Message -
From: "Paul Smith" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 3:42 PM
Subject: Re: Fw: ThreadLocalAppender for log4j? resending
> On Wed, 2004-03-03 at 10:33, Ramakrishna Menon wrote:
> > Paul
> > Thanx a lot!
> > m
On Wed, 2004-03-03 at 10:33, Ramakrishna Menon wrote:
> Paul
> Thanx a lot!
> my requirements:
> When a url is rendered, the entire rendering logic is done in a separate
> thread (assume
> one request = one separate thread). In the logic of rendering the url,
> we have log4j messages being logged.
Paul
Thanx a lot!
my requirements:
When a url is rendered, the entire rendering logic is done in a separate
thread (assume
one request = one separate thread). In the logic of rendering the url,
we have log4j messages being logged. I want to transparently "trap" those
messages
so that I can dump the
Pradeep, Thanks a lot for your quick response. I am getting this problem
in production which runs on AIX. I don't think so it is OS specific. And,
it is not happening always. The application is running since 2 years. I
have seems these two problems only couple of times. I guess, it is
happenin
In normal usage of Log4J, this is a standard practice
Logger logger = Logger.getLogger("com.acme.someclass");
if (logger.isDebugEnabled())
{
logger.debug("This is my debug message" );
}
What if the Category (ie 'com.acme.someclass') isn't a static value but some
dynamic value ? O
Hi Naidu,
You code runs fine on a standalone app on win2k m/c with log4j-1.2.8. It
has to be something with your webapp/websphere setting.
-pradeep kanwar
ps: your properties file with a basic prog
***BasicReadFileProperties.properties**
log4j.category.sca.kpol=ERROR, HL7_APPENDER_SCA
Thank you Dave.
- Original Message -
From: "Dave Jones" <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Tuesday, March 02, 2004 5:09 PM
Subject: Re: DailyRollingFileAppender does not create its archive files
> The problem is that Windows holds a lock on the log file
Ok, to get some context to what we did, our App had a MessageListener
interface that was used a lot as a Listener callback to pass
Informational messages to our GUI (I've put notes in []):
public interface MessageListener extends EventListener {
/**
* This listener receives a noti
Hi,
We are currently using log4j-1.2.7 and deployed as a web application in
WebSphere
application server. The setting for the Rolling File Appender is
log4j.category.sca.kpol=ERROR, HL7_APPENDER_SCA
log4j.additivity.sca.kpol=false
log4j.appender.HL7_APPENDER_SCA=org.apache.log4j.RollingFileApp
Paul
I would definitely be interested in the example code...
Best Regards,
Menon:)
-
Ramakrishna M. Menon (A Rafi Fan - http://www.mohdrafi.com )
MBA, Berkeley
Oracle Corp.-> (650) 506-2343
http://websites.oraclecorp.com/websites/pub/ora
We got this to work, but the Thread itself had to create the appender, and
initialise it with a filter that looked for LoggingEvents that were fired
via Thread.currentThread() (matching via .equals(...) to the original
Thread).
We found this useful in a situation where a class a way down the call
Hi Jonathan,
How do you connect SMTP appender to Async appender?
I would appreciate xml example.
Thanks.
robert
-Original Message-
From: Mandar Mangalvedhekar
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, February 18, 2004 11:22 AM
To: [EMAIL PROTECTED]
Subject: RE: Problem using SMTPAppend
Since statics are logically a part of the class definition, things for it
are defined in the class definition (ie, the source code). Polimorphism
doesn't apply as it doesn't really make sense for classes themselves. So
you have three basic ways to do it:
1) Use an instance member. Since Logger.
The problem is that Windows holds a lock on the log file,
preventing log4j from renaming it to an archive version. Thus
when the next log is started, it simply overwrites the old log
instead of writing to a new log.
Purportedly the new version of log4j addresses this, but I
haven't had a chanc
I'm using log4j-1.2.8 in my client app which is composed of several applets.
How do I eliminate the connections that JAVA PlugIn makes to my server to
get several *BeanInfo classes? As I said, my app consists of several applets
- these several connections per applet is taxing my server.
Thanks in
Hi Menon,
How can the thread specific appender filter out logging events from other
threads and only keep logging events from the "local" thread? Does my
question make any sense?
At 07:26 AM 3/2/2004 -0800, Ramakrishna Menon wrote:
Thanx Ceki,
The idea is that each web page rendering is based o
Thanx Ceki,
The idea is that each web page rendering is based on a request. Each request
is almost always
a single thread. So if you intercept the messages being generated by log4j -
and store them in a
ThreadLocal variable (each thread will store it in its own variable), won't
you get this functio
Adding the log4j.debug=true directive to your config file should give you
better information.
At 03:23 PM 3/2/2004 +, you wrote:
I am using log4j in my Tomcat-based application to create daily log files
using the DailyRollingFileAppender.
The development environment is Tomcat 5.0.16 on a Wind
Look at the section "Wrapping the logger class" which just preceeds the
section entitled "the wider context." The answer is in that section, in
particular in the paragraph beginning with "The mysterious FCQN variable".
At 03:36 PM 3/2/2004 +0100, you wrote:
page 167 of which manual? what's the t
I am using log4j in my Tomcat-based application to create daily log files
using the DailyRollingFileAppender.
The development environment is Tomcat 5.0.16 on a Windows XP-based machine
and the production environment is Tomcat 5.0.19 on Linux-based server.
I use exactly the same log4j jar files on
page 167 of which manual? what's the topic?
i have the manual from 01/02.2003... and on this page the discussion is
about applicationserver and deployed applications with log4j.jar (cap. the
wider context). i'm testing simply on the console with setting the
classpath explicitly.
Ceki Gülcü
There is no such appender to my knowledge.
If I understand correctly, you would like to limit log entries to a
specific thread. If that is the case, I don't see a thread local appender
will help.
At 05:26 PM 3/1/2004 -0800, you wrote:
Not sure if you got this. Resending it...
Thanx!
Best Regard
The answer is on page 167.
At 08:43 AM 3/2/2004 +0100, you wrote:
Hi all,
We have integrated log4j in our general logging-infrastructure. for this
purposes we extended log4j as described in the manual (decorator-pattern).
Everything worked fine since i've seen that some character in the
Conversion
23 matches
Mail list logo