Dear fellow Log4j users,
Consider that I have a set of java classes in separate packages, all jar'ed
and sent to
a browser client as part of an applet (indeed the applet itself has such
logging code in it) or
some of the same classes are used as part of a servlet.
Here's a snippet of the logger
I didn't seem to receive the original with the attachment... sorry for the
bother.. Stephen
-Original Message-
From: Ceki Gülcü [mailto:[EMAIL PROTECTED]]
Sent: Thursday, October 04, 2001 4:10 PM
To: LOG4J Users Mailing List
Subject: Re: Enhanced error-reporting DOMConfigurator
Thomas,
Thomas,
Thanks for your contribution. Ceki
At 19:21 30.08.2001 +0100, you wrote:
>Hi,
>
>I'm tired of Log4j not reporting the line number when parsing XML files, so
>I added a few lines in DOMConfigurator.java. Find it attached, and use at
>your own discretion.
>
>--
>
>Thomas
>
>
>
>*
Please excuse my novice questions. I am trying to find out about the
product's features to propose its usage to my bosses.
1. Does log4j have any utilities for serving log files to a remote user or
anything related?
2. Can it produce well-formed XML file with a root tag, not just node list,
were i
Ed,
No, you will need to wait for 1.2. Sorry for the inconvenience. Ceki
At 15:21 04.10.2001 -0400, you wrote:
>I am interested in getting version 1.7 of PriorityMatchFilter.java
>which has the fix that allows custom priorities derived from Priority
>to be specified in the config file.
>
>I do
The JMSAppender like the SocketAppender does not use a layout. The formatting is done
at the
server side. Regards, Ceki
At 11:39 04.10.2001 -0600, you wrote:
>I have a custom appender setup that routes messages to JMS . I am using
>PatternLayout to format . How do I extract the format that ex
I am interested in getting version 1.7 of PriorityMatchFilter.java
which has the fix that allows custom priorities derived from Priority
to be specified in the config file.
I do not want to maintain this code locally until 1.2 is out of alpha.
Thank you for your assistance.
Ed
---
An answer can be found at:
http://jakarta.apache.org/log4j/docs/FAQ.html#filterByPriority
Even if nobody seems to ever read the documentation I am in
the process of writing a new manual. It is available at:
http://jakarta.apache.org/log4j/docs/manual/manual.html
or
http://jakarta.apache
Hello to the distinguished Boris Garbuzov,
Although logkit does not have a mailing list you can probably ask questions on the
jakarta-avalon mailing list. Log4j is not the appropriate forum for logkit related
questions. Regards, Ceki
At 11:05 04.10.2001 -0700, Boris Garbuzov wrote:
>Hello to
> Please find config file and test program attached. I guess I'm
> misunderstanding something with respect to configuration, but
> I can't see what.
I think you'd be better off starting off with a *simple* test program -
one that had a single appender (and not CompositeRollingAppender, which
I c
Thank you. That appears to be what I was missing.
Scott
"Jon Skeet"
Please find config file and test program attached. I guess I'm
misunderstanding something with respect to configuration, but I can't see
what.
--
Thomas
| -Original Message-
| From: Jon Skeet [mailto:[EMAIL PROTECTED]]
| Sent: 04 October 2001 18:44
| To: LOG4J Users Mailing List
| Subj
> By thresholds, are you referring to 'priority'?
No, I'm referring to "threshold".
Try using:
on the appender you want to only receive events of the error priority
and above.
Jon
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
Hello to all honorable members of Log4j list. I would appreciate your
general comment on the libraty Jakarta/Avalon/LogKit that you do not mention
as your peer in documentation. My company decided to use it noting that they
used to have some compatibility issues with Log4j-Weblogic in the past.
Lo
By thresholds, are you referring to 'priority'? If this is the case, then
I did refer to priorities for each Category. Otherwise, I'm confused by
what you mean as threshold. Here's the log4j.xml that I posted earlier:
> I seem to remember someone mentioning a way to do this... (quick
> look at my email archive... Ahh, there it is)
> On: Tue, 25 Sep 2001 09:01:35 -0400
> Written by: Stephen Levinson <[EMAIL PROTECTED]>
>
> He quoted the FAQ which stated:
>
> Is it possible to direct log outpu
> I'm experiencing exactly the same - changing priority levels for the
> different categories doesn't seem to have any effect on the logging.
>
> I'm waiting in anticipation for any input from the gurus...
Could you give us a short but complete test: configuration files, test
classes etc? I've n
Jon Skeet wrote:
>
>
> Well, each appender can have a *threshold*, which is a minimum priority
> level.
>
> Search for "threshold" in the mailing list archive for details.
>
> > In theory, this means I can log all debug messages for a
> > category to one file, all error messages to another fi
I have a custom appender setup that routes messages to JMS . I am using
PatternLayout to format . How do I extract the format that exists in
the log4j.properties file for my specific custom appender ?
The getProperty will work but its not using the existing infrastructure.
public class JMSMsgA
> The problem I'm encountering with the XML configuration, is that the
> minimum threshold seems to get over written. I get debug
> messages in the error log, even though I'm setting the threshold
> for the error file log to 'error'.
Could you show where you're doing that? I didn't see any thr
I'm experiencing exactly the same - changing priority levels for the
different categories doesn't seem to have any effect on the logging.
I'm waiting in anticipation for any input from the gurus...
--
Thomas
| -Original Message-
| From: [EMAIL PROTECTED]
| [mailto:[EMAIL PROTECTED]]
I've considered inheritance and have played with the additivity settings to
no avail.
It appears the problem is that the appenders can't be assigned priorities,
only categories can be assigned a single priority for all appenders,
through the xml configuration file or any type of config file. Is
The problem I'm encountering with the XML configuration, is that the
minimum threshold seems to get over written. I get debug messages in the
error log, even though I'm setting the threshold for the error file log to
'error'. I did a search for xml configuration problems, but didn't see
anythi
While it is true that a Category can have multiple appenders, neither the
properties file definition nor the log4j.dtd have syntax for assigning a
Priority to an Appender. Priority is assigned to the Category.
Also, don't forget the inheritance of Categories. The Category
"com.lycos.subscriber.
> First, a quick question: Its my assumption that each log4j
> category can have muliple appenders.
Yes.
> Each appender for a category can also have its own
> priority.
Well, each appender can have a *threshold*, which is a minimum priority
level.
Search for "threshold" in the mailing list
First, a quick question: Its my assumption that each log4j category can
have muliple appenders. Each appender for a category can also have its own
priority. In theory, this means I can log all debug messages for a
category to one file, all error messages to another file, and warning
messages to
Hi David
>First Question I can answer: Use %n instead of \n. %n (discussed in the
>javadoc for the PropertyConfigurator class) is the OS-independent carriage
>return.
>
Thanks a lot! Works perfectly well with %n.
Thomas
-
To
Jon
>
>Which VM are you using? It could well be that the line number and
>filename isn't being passed back in the stack trace - old JITs couldn't
>cope as well as modern ones can.
>
I always use the JRE's from SUN. This particular server runs JRE 1.2.2.
Many thanks for your replies.
Thomas
-
First Question I can answer: Use %n instead of \n. %n (discussed in the
javadoc for the PropertyConfigurator class) is the OS-independent carriage
return.
Second Question gets a little stranger, but I think it helps to think of it
this way:
Where is the JVM for your Web Server executing? That'
> I have just started to use log4j. After studying the
> documentation I tried to make a first implementation in a
> servlet. It seems to work so far, but I have some questions:
>
> In my configuration file I have made the following setting:
>
> log4j.rootCategory=DEBUG, FILE
> log4j.appender.
Hello,
I have just started to use log4j. After studying the documentation I tried to make a
first implementation in a servlet. It seems to work so far, but I have some questions:
In my configuration file I have made the following setting:
log4j.rootCategory=DEBUG, FILE
log4j.appender.FILE=org.
See Marks posting
([EMAIL PROTECTED]) yesterday.
--
Thomas
| -Original Message-
| From: BillWorker 2i Development Team [mailto:[EMAIL PROTECTED]]
| Sent: 04 October 2001 11:56
| To: LOG4J Users Mailing List
| Subject: Re: SNMP appender?
|
|
| Ceki Gülcü wrote:
|
| > Ashish,
| >
| > Mar
Ceki Gülcü wrote:
> Ashish,
>
> Mark just recently posted code that used joeSNMP. Thanks for the suggestion though.
>Ceki
>
Sorry, didn't realize it. BTW where can I get the code?
Ashish Shrestha
__
Scanned and protected by Inflex
http://pldaniels.com
33 matches
Mail list logo