RE: Help with log4j and cactus

2001-07-25 Thread Ceki Gülcü
Shawn, Try the following XML file. ?xml version=1.0 encoding=UTF-8 ? !DOCTYPE log4j:configuration SYSTEM log4j.dtd log4j:configuration appender name=TEMP1 class=org.apache.log4j.FileAppender param name=file value=c:/temp/appserver.log/ param name=append value=true/ layout

Re: Forcing DailyRollingFileAppender to Rollover

2001-07-25 Thread Ceki Gülcü
At 18:00 24.07.2001 -0700, you wrote: Sometimes I have appenders that dont get log messages very often - usually cause they set their thresholds to error or above. The DailyRollingFileAppender doesnt work right with these classes cause the files dont get considered for rollover unless a log event

Re: JMSAppender configuration

2001-07-25 Thread Naresh Sharma
Hello Sam, Thanks for the pointer i have found one configuration file for JMS appender(E:\jakarta-log4j-1.1b7\src\java\org\apache\log4j\net\test\jms.lcf). but still i am not able to understand the working because it did'nt specify the JMS server host/port, anyone have idea where its running or

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Sam Newman
The source code for the XMLFileAppener is included with the distribution. You could edit it I guess this file and rename it or something (WellFormedXMLFileAppender?) - shouldn't be too hard. sam Krishnamurthy, Balaji (MED) Wrote: Hi folks, I started using log4j recently and have started

UNCAUGHT EXCEPTION

2001-07-25 Thread Steve Duran
Greetings, I am reporting an uncaught exception as indicated on the FAQ page. Log4j is consistently throwing this exception from different areas in the code, but the stack trace within Log4j is always the same as shown below. Apparently it doesn't get thrown on our unix server, but is

Re: Multiple Appenders

2001-07-25 Thread Sam Newman
My understanding is that a priority level applies to the category, not the appenders. What about using 2 categories for the same hierarchy (I asume root), and then attach the FileAppender to one, and the SMTPAppender to the other? I actually want to use 2 categories for the same classes

Re: Multiple Appenders

2001-07-25 Thread mark . russel
How about using two categories Category catUser = Category.getInstance(className.class.getName() + .user); Category catSystem = Category.getInstance(className.class.getName() + .system); Then you could set different appenders to the different categories. You could log user events like this:

Re: Multiple Appenders

2001-07-25 Thread Naresh Sharma
Hello Sam, Thanks for the answer. Yes i think the way you suggested is good and will solve my purpose to route different messages to different mediums. onemore thing do you have some sample source code for this, or kind of similar. Thanks Naresh Sam Newman wrote: My understanding is that

Re: Multiple Appenders

2001-07-25 Thread Naresh Sharma
Hello Mark, Is it possible to restrict a particular category to serve only particular Priority level, suppose my requirement to have catSystem category only ERROR and FATEL priority level, one obivious way could be is simply don't use other priority log methods like catSystem.Info etc., but i

Re: Multiple Appenders

2001-07-25 Thread mark . russel
yes it is. I'll post an example as soon as I set up a simple one. Mark Russell PNC 412-768-9603 Naresh Sharma

Re: Multiple Appenders

2001-07-25 Thread Sam Newman
In as much as you can specify the priority level of a category from a proprties file, then yes. If you set the priortiy of a category catA to only log WARN level stuff, catA.debug() would still work, you just wouldn't get any output. sam - Original Message - From: Naresh Sharma [EMAIL

Re: Multiple Appenders

2001-07-25 Thread mark . russel
The last sentence is a true statement. also catA.warn() would also send output to the log. Mark Russell PNC 412-768-9603 Sam Newman

Re: Multiple Appenders

2001-07-25 Thread Sam Newman
Currently I use log4j via an abstracted static class. I have a method called warn, which does the following (it is a little aprroximated - don't have the code in from of me): public void warn(Class class, String message) { Category cat = Category.getInstance(class.getName());

Re: JMSAppender configuration

2001-07-25 Thread Naresh Sharma
Hello Everybody, I have found one configuration file for JMS appender(E:\jakarta-log4j-1.1b7\src\java\org\apache\log4j\net\test\jms.lcf). but i am not able to understand the working because it did'nt specify the JMS server host/port, anyone have idea where its running or how it works, please

JMSAppender Service configuration

2001-07-25 Thread Naresh Sharma
Hello Everybody, I have found one configuration file for JMS appender(E:\jakarta-log4j-1.1b7\src\java\org\apache\log4j\net\test\jms.lcf). but i am not able to understand the working because it did'nt specify the JMS server host/port, anyone have idea where its running or how it works, please

Categories concept

2001-07-25 Thread Naresh Sharma
Hello Everybody, Well my understanding about Category is that we can have our own categories and there must be category declared in the properties file, for which we can call like this static Category CAT = Category.getInstance(Sort.class.getName()); in this case their should be a

Re: Multiple Appenders

2001-07-25 Thread mark . russel
First thing the use of classes as category names is a convention. You can use anything you want to as I added the .user and .system to the end of the class name. Second the code in your post looks like it will work. Here is the config file I used to test the idea. # Set root category

Re: Categories concept

2001-07-25 Thread Don Taylor
--- Naresh Sharma [EMAIL PROTECTED] wrote: Hello Everybody, Well my understanding about Category is that we can have our own categories and there must be category declared in the properties file, for which we can call like this static Category CAT =

Re: Multiple Appenders

2001-07-25 Thread Sam Newman
Naresh, I've just found this alternative to logging to different appenders given the priority - it comes straight from the log4j FAQ (http://jakarta.apache.org/log4j/docs/FAQ.html#filterByPriority to be exact) I should of checked it eariler myself!: Setting the Threshold option of any appender

Multiple Categories (was: Multiple Appenders)

2001-07-25 Thread Sam Newman
Is it worth including Mark's excellent example of using multiple Categories in the FAQ? sam - Original Message - From: [EMAIL PROTECTED] To: LOG4J Users Mailing List [EMAIL PROTECTED] Sent: Wednesday, July 25, 2001 3:34 PM Subject: Re: Multiple Appenders First thing the use of

RE: Multiple Appenders

2001-07-25 Thread Michael Roytman
Naresh, You can also try attaching priority filters to your appenders. Michael -Original Message- From: Sam Newman [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:48 AM To: LOG4J Users Mailing List Subject: Re: Multiple Appenders My understanding is that a

RE: Multiple Appenders

2001-07-25 Thread randip singh
Title: RE: Multiple Appenders sam If I dont want a priority and above but just one priority per-se , what is the best mechanism ? randi :+-Original Message- :+From: Sam Newman [mailto:[EMAIL PROTECTED]] :+Sent: Wednesday, July 25, 2001 11:09 AM :+To: LOG4J Users Mailing

Message Queing

2001-07-25 Thread Craig_Reichenbach
In looking at Log4j source, if one uses a File based Appender, it looks like calls to the various Category log functions (debug, info, error, etc) are held up until the actual File I/O occurs via the QuietWriter class. I did notice the immediateFlush boolean in WriterAppender, and although it

Design: How to do the following with Log4j

2001-07-25 Thread tmulle
Hi All, I'm currently evaluating the possibility of using Log4J as our logging solution rather than writing my own from scratch or using the JDK1.4 logging API. I have been given a couple of requirements that the logging system must fulfill. Right now, Log4j looks like it does most of what

Re: UNCAUGHT EXCEPTION

2001-07-25 Thread Ceki Gülcü
Steve, Which version of log4j is this? It's not log4j 1.1.3 is it? Regards, Ceki At 22:32 24.07.2001 -0700, Steve Duran wrote: Greetings, I am reporting an uncaught exception as indicated on the FAQ page. Log4j is consistently throwing this exception from different areas in the code,

RE: Design: How to do the following with Log4j

2001-07-25 Thread Robert Bergstrom
Title: RE: Design: How to do the following with Log4j Tim: Have you looked into ObjectRenderer/RenderMap? They allow you to control how a message is converted to a string. You could map each one of your custom objects to a different renderer. Log4j is configurable at runtime. It can watch

RE: Design: How to do the following with Log4j

2001-07-25 Thread tmulle
Yes I have looked into those..however, it appears that when I want to log to a remote server, I will be sending the string representation down the wire, which I'd have to then parse into an object on the log server so I can access the individual fields. It would be much more useful to send the

RE: Assigning appenders to priorities?

2001-07-25 Thread Blacha, Bart
Never mind, I just figured it out. I'm such a newbie. Adding priority filters to the appenders works really nicely. -Bart -Original Message- From: Blacha, Bart [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 4:30 PM To: '[EMAIL PROTECTED]' Subject: Assigning appenders

Lower Priorities than the root

2001-07-25 Thread Ross Cormier
I have the root category set to INFO. Can I set a specific category to a priority DEBUG and have it print events? Thanks, Ross __ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

Re: XMLLayout and well formatted XML documents

2001-07-25 Thread Ceki Gülcü
This is what the javadoc says: The output of the XMLLayout consists of a series of log4j:event elements as defined in the log4j.dtd. It does not output a complete well-formed XML file. The output is designed to be included as an external entity in a separate file to form a correct XML file.

RE: XMLLayout and well formatted XML documents

2001-07-25 Thread Krishnamurthy, Balaji (MED)
Ceki, Gotcha, are there any appenders I can use that can give me a well-formed document, without having to write one myself. -Balaji -Original Message- From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] Sent: Wednesday, July 25, 2001 7:46 PM To: LOG4J Users Mailing List Subject: Re:

RE: Design: How to do the following with Log4j

2001-07-25 Thread Timothy Mulle'
Yes, I have...if you look at the LoggingEvent.java source, you will see the problem is that the message field that Object is stored is is marked "transient" which means it WILL NOT be serialized and sent across the wire. It looks like only the String representation was meant to be shipped

Re: Multiple Categories (was: Multiple Appenders)

2001-07-25 Thread mark . russel
I have no problem with you using the example. Mark Russell PNC 412-768-9603 Sam Newman