how about this?
in your threaded class where performing logging process add
synchronized (lock)
{
//all logging process here.
}
On Thu, 15 Sep 2005 11:44:59 +0530
"Jitendra Kharche" <[EMAIL PROTECTED]> wrote:
>
> If I understood your reply correctly, I think calling removeAllAppenders(
> Make sure you don't have multiple instances running
Multiple instances of what? There is only one instance of my application but
there can be many instance of the Threaded class running.
Regards,
Jitendra
-Original Message-
From: Otto Leung [mailto:[EMAIL PROTECTED]
Sent: Thursday,
If I understood your reply correctly, I think calling removeAllAppenders() will
be a problem because my application is running at the time of rolling.
Regards,
Jitendra
-Original Message-
From: 洪春植 [mailto:[EMAIL PROTECTED]
Sent: Thursday, September 15, 2005 7:20 AM
To: Log4J Users Lis
Hi
Thaks for the information. Even me facing the same problem. The file
size is set to 150MB which I think is too huge and max Number of roll
ups being set to 20. I think this should be the problem. I will reduce
the file size and check it. Thanks for the info anyway.
Any suggestable file size a
I am losing log messages within (or should I say between) log files been
rolled over. The actual rolling over of log files appears to be working
fine.
To give a specific example, I can follow the logging of a thread in
"application.log.1" and get to the end of the log file. When I open the
current
> How can I close the file from within the code? I think this is the job of
> Log4j.
removeAllAppenders() will close logfile explicitly, but this might cause
other problems.It depends on your implementation of the threaded class.
On Wed, 14 Sep 2005 14:37:08 -0700
"Otto Leung" <[EMAIL PROTECTED]
Receivers are not Chainsaw specific.
The mechanism for saving and restoring per-tab settings is via files mapped to
the tab name.
See the user.dir/chainsaw directory for examples of how settings are saved.
The mechanism for saving some settings should change - away from serialized
objects, b
Per-tab configuration would be ideal.
Do you envision these configuration values to be stored outside of the
main log4j:configuration node? If so, would they have to be stored in a
seperate file or could they be stored in the same file with all the
other settings? What about my questions regarding
Hi,
We have a standalone application where the user will be responsible for
modifying the log4j XML logging properties file as they require and/or wish.
So, this means that it is likely they will create invalid XML at some point.
My problem is that the DOMConfigurator configure methods catch al
By the way, you probably want per-tab configuration of the layout,
right? Which may or may not map to a single receiver plugin, depending
on the tab identifier?
I'd like to add a configurable default and save/reload of changed
layouts on a per-tab basis, but don't have much time.
Scott
-Ori
There are at least two options:
- make changes to Chainsaw source to support the persistence of per-tab
or a single 'global' layout that is loaded on the creation of each tab
- Retrieve the Chainsaw source and change the .html file containing the
default layout, build and run this version of Cha
Can non-log4j nodes be in a Chainsaw config file? Does Chainsaw have an
API for retrieving nodes outside of log4j:configuration when a config
file is specified?
I'm currently using the following plugin to configure Chainsaw:
I don't like the default detail layout:
http://tinyurl.com/bmug
Make sure you don't have multiple instances running
Regards,
O
-Original Message-
From: Jitendra Kharche [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 14, 2005 9:32 AM
To: Log4J Users List
Subject: RE: RollingFileAppender does not roll
How can I close the file from within the co
Thanks for the reply Scott,
I, of course, breezed over the ImplicitAction class and did not grasp a good
knowledge of what it did. Thanks for pointing it out. I'll look into the
ChainsawAppender and see how that works for me. I might be back...
Thanks again for the suggestions. A+
Mark
-Ori
Ceki is the authority on this stuff. See AndFilter for an example of
something that uses implicit actions (the tag names are the key, if I
recall).
Maybe you could use something like the generic 'ChainsawAppender', which
instantiates a 'viewerClass' and calls the 'activateViewer' method, from
whi
How can I close the file from within the code? I think this is the job of Log4j.
Regards,
Jitendra
-Original Message-
From: 洪春植 [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 13, 2005 2:52 PM
To: Log4J Users List
Subject: Re: RollingFileAppender does not roll
see if you can rename
When you say that you're losing log messages, do you mean that you
appear to be missing log files, or are you simply missing log messages
within log files? By "missing" log files, do you see things like
"..log.1", "..log.3", and "..log.4", where "..log.2" is missing?
If that's the case, are you t
Can anyone resolve my confusion?
The way I understand how the new joranconfigurator works is that there is an
actionclass associated with each tag in a log4j xml configuration file. How
then, if there is say a rolling file appender in the config file which has
the children rollingPolicy, triggerP
Hi,
NDC has a limitation wherein you can only push/pop String objects. I have a
requirement wherein I need to dump the Contextual info stack onto the log
file only when an exception occurs. In order to fulfill this requirement and
implement it efficiently, I would like to avoid expensive toString
19 matches
Mail list logo