While setting the values for the variables defined in log4j.xml , if some
error is encountered , where do we log this exception as the log4j has not
been cpnfigured so far.?
I am using System.err.println statements , can log4j be configured to log
these statements
Regards,
Shirish
- Origi
One correction..each of the name fields as well as name params should be
different for each receiver (copied & pasted but should have changed those
fields).
Change the names to anything you want, but this will help you identify the
individual receivers from inside Chainsaw (you can restart/re
Chainsaw can process events from multiple log files.
Chainsaw requires its own configuration file that provide receiver definitions
- separate from the config files that provide appender definitions.
To process multiple log files, create multiple 'plugin' sections in Chainsaw's
config file - on
I am using Chainsaw to log events from an application whose processing
is distributed across a mix of java and .net processes. Currently, each
of these processes is producing a log file via a RollingFileAppender. I
am considering that it might be nice to have a single file that
aggregates the outpu
If your Chainsaw config file includes an appender, the appender will process
events received by Chainsaw (for example, a fileAppender hooked up to Chainsaw
would write any events received by Chainsaw to the log file, and you probably
don't want that to happen)..
For Chainsaw to read log files,
Hello Dirk,
Thank you very much. I am a bit embarrassed that I didn't notice
that on my own.
Do you have any comments on the second part of my question
(configuring Chainsaw to use a Rolling File Appender)? It doesn't seem
to be working for me. I've pasted in my config file below.
Have you looked at UGLI
(http://logging.apache.org/log4j/docs/ugli.html) in log4j 1.3? It
attempts to serve the same type of role as commons-logging without
being affected by classloader issues.
On Mar 3, 2005, at 11:20 AM, [EMAIL PROTECTED] wrote:
In what way does your wrapper provide plugabi
Quoting [EMAIL PROTECTED]:
> We're doing manual config in the sense that we're calling
> PropertyConfigurator.configureAndWatch(). That might change. However,
> log4j isn't on the server's classpath, though it is in common/lib. I know
> this because I removed the log4j.jar file from my ear but
I take it your refering to the list archives. Can you search the list
archives if so?
Al
-Original Message-
From: Curt Arnold [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 11:43 AM
To: Log4J Users List
Subject: Re: FallbackErrorHandler hangs up thread
I wasn't involved in th
I wasn't involved in the project when those things were being hashed
out and haven't worked with either. Maybe the archives or others can
be more helpful.
On Mar 3, 2005, at 11:09 AM, Harper, Allen (AHARPER) wrote:
Curt,
The lockup is in the errorhandler, or is this problem related to the
JDBCA
In what way does your wrapper provide plugability that commons-logging
doesn't? I don't mean to harrass you about it, but we have a wrapper also
that I'm having second thoughts about.
Thanks
-Original Message-
From: The Dude [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 11:1
Hi John
I need to provide a wapper so that we can then change the implementation to
other impls. In actual fact:
1) Client --- > Wrapper -> Commons Logging > Log4jimpl
2) Client --- > Wrapper -> Commons Logging
3) Client --- > Wrapper -> Commons Logging > JDKLogging
Its our c
Curt,
The lockup is in the errorhandler, or is this problem related to the
JDBCAppender in some way. Can you shine any further light on this?
Al
-Original Message-
From: Curt Arnold [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 11:03 AM
To: Log4J Users List
Subject: Re: Fall
We're doing manual config in the sense that we're calling
PropertyConfigurator.configureAndWatch(). That might change. However,
log4j isn't on the server's classpath, though it is in common/lib. I know
this because I removed the log4j.jar file from my ear but left the manifest
classpath refs in
Ok, and thank your very much.
Al
-Original Message-
From: Curt Arnold [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 11:03 AM
To: Log4J Users List
Subject: Re: FallbackErrorHandler hangs up thread
On Mar 3, 2005, at 10:40 AM, Harper, Allen (AHARPER) wrote:
> I have added the
El Duderino,
I haven't looked at how the logger impl works in this area, but it looks
like you might be stuck with that. Your wrapper is in fact the caller.
BTW, why did you wrap log4j?
John
-Original Message-
From: The Dude [mailto:[EMAIL PROTECTED]
Sent: Thursday, March 03, 2005 10
On Mar 3, 2005, at 10:40 AM, Harper, Allen (AHARPER) wrote:
I have added the FallbackErrorHandler in my XML config for failover if
the JDBC appender fails.
The JDBC appender is under control of the ASYNC appender.
In my test I deliberately shutdown MySQL to cause DB access failure.
FallbackErrorHan
Hi
i have written a wrapper for log4j which delegates all my calls to the
underlying log4j impementation here is a code snipped:
public class Wrapper implements SomeIF {
private Category log = null;
public Wrapper(final String className) {
log = Category.getInstance(className);
}
I posted the message below, and as of yet have not received any
response. I'm on critical path on a huge design and would appreciate any
input soon.
Thanks very much Al Harper
I have added the FallbackErrorHandler in my XML config for failover if
the JDBC appender fails.
The JDBC appender is
Quoting ron <[EMAIL PROTECTED]>:
> What I would like to do is:
> Log net.tutim on DEBUG level *only* to one log,
> Log all others on INFO level *only* to another log,
>
> Can anyone help me with that?
>
You don't have your config in this email, but as I recall from yesterday, you
had both appende
At the moment you can not specify this "plugin config" as a System Property,
but you can specify it via the menu "Show Application wide preferences" and
then "Automatic Configuration URL" (in fact this info is stored in the file
chainsaw.settings.properties as configurationURL). You can specify thi
Hello,
I am currently configuring my Chainsaw receivers via the
"You have no Receivers defined." dialog that pops up when Chainsaw
starts. I have seen the "example Receiver configuration" on Chainsaw's
Welcome tab and from it infer that I can place a configuration file
somewhere and
You can use MDC for this.
In your code:
MDC.put("Key", "blabla");
In the appender PatternLayout:
%X{Key)
If you use the LogFilePatternReceiver you can add in the 'format':
PROP(Key)
When post-processing in Chainsaw you can filter on PROP.Key == blabla
You can order on this property by double-c
NDC or MDC might be what you want. They're a way of adding contextual info
to your messages without having to do something like Logger.info(key +
message). The trick is that NDCs are associated with a thread and if you're
doing EJB calls you need another way to propagate the context, or key in
yo
Hi All,
I am using the pattern "Date Priority [Category] Message\n".
I want to modify this pattern to add a key as a prefix to each log
statement e.g. "Key Date Priority [Category] Message\n".
I want to use this key to group log statements. Log statements having
same key will be grouped and indic
That's great! Thanks!
> -Original Message-
> From: Scott Deboy [mailto:[EMAIL PROTECTED]
> Sent: donderdag 3 maart 2005 16:13
> To: Log4J Users List
> Subject: RE: Chainsaw LogFilePatternReceiver: ftp/http tailing
>
>
> Reload/refresh of events is already supported:
>
> - Open the rece
Reload/refresh of events is already supported:
- Open the receiver panel
- Clear the events on the tab in order to prevent duplicates (ctrl-backspace)
- Select your receiver
- Right click on your selected receiver and select 'restart' (or use the button
on the receiver panel's toolbar).
Scott
Scott,
Thanks for your extensive reply. This solution has quite some dependencies
on other projects. A workaround (that would suit me :-)) is that there would
be a 'reload/refresh' option for ftp/http file access. Any estimate on the
effort that would take?
cheers,
dirk
> -Original Message--
What I would like to do is:
Log net.tutim on DEBUG level *only* to one log,
Log all others on INFO level *only* to another log,
Can anyone help me with that?
Curt Arnold:
On Mar 2, 2005, at 3:32 PM, ron wrote:
Hi,
I am trying to set log4j under tomcat to log certain java packages
to certain logs
What is the release date for log4j-1.3alpha-6.jar and
log4j-optional.jar?
Thanks
Shaily
James,
thank you for your help.
I issued the bug #33827.
Regards
Arthur Brown
> I don't see how it could work.
> Arthur Brown <[EMAIL PROTECTED]> wrote:
> > do you agree with me, that without doing anything, i. e.
> > change the code, derive a new class from JNDIConnectionSource
> > and redecla
31 matches
Mail list logo