HTML - my own html

2002-07-03 Thread Robert Mark Bram
Howdy all! When using the HTML Layout, I would like to insert my own html in the message body.. log.debug ("Attempting creation of an expression with parameters: " + " yada yada yada "); But I find that when I use this, HTML layout converts my angle brackets to the html codes <

RE: The complete log4j manual now available

2002-07-03 Thread Mark Womack
Cool. Right now it is a pdf file? Looks like you have a cover and everything...planning to publish it hard copy? It would be nice to be able to see a sample chapter (say the introduction) or pages. -Mark > -Original Message- > From: Ceki Gülcü [mailto:[EMAIL PROTECTED]] > Sent: Wednes

RE: Log4J and multiple logging files?

2002-07-03 Thread Mark Womack
I am not sure you can do what you want. You would need to look at the PropertyConfigurator code to be sure of what it is doing. I do know that for the DOMConfigurator, it will allow for some "overlaying" of multiple configuration files onto a single LoggerRepository. That is, as long as the con

RE: Log4J and multiple logging files?

2002-07-03 Thread Ebersole, Steven
I don't think there is a way to do what you want to do through the process of "default initialization". Have you considered using a central log initialization class for the app as a whole? This would make the (top-level)application responsible for loading the logging config file for each packa

RE: Log4J and multiple logging files?

2002-07-03 Thread Georgescu, Cristian [IT]
Thanks, your suggestion solved my problem - that of having multiple log files. But now I have a different issue: I want to configure separately each category from a *different* property file, something like this: // In DatabaseAccess class Category cat = Category.getInstance("com.mycomp

The complete log4j manual now available

2002-07-03 Thread Ceki Gülcü
Greetings, A draft version of "the complete log4j manual" is now available. Please refer to http://jakarta.apache.org/log4j/docs/documentation.html for more information. -- Ceki -- To unsubscribe, e-mail: For additional commands, e-mail:

Re: compress log files

2002-07-03 Thread Jin Zhao
Search the mail archive. There were a RollingGZipFileAppender and a RollingZipFileAppender posted before. Jin > hello, > > is there a way to automatically compress the log files and archive them > after they are rotated? is this supported in log4j? > > thanks, > Sachin Solkhan > NerveWire Inc.

compress log files

2002-07-03 Thread ssolkhan
hello, is there a way to automatically compress the log files and archive them after they are rotated? is this supported in log4j? thanks, Sachin Solkhan NerveWire Inc. -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Log4J and multiple logging files?

2002-07-03 Thread Mark Womack
Cristian, I don't have time to work out an entire example, but you should look into doing the following in your configuration file: 1) Create an appender for the security, database, and application. 2) Attach the application appender to the root logger. 3) Attach the security appender to a logge

Log4J and multiple logging files?

2002-07-03 Thread Georgescu, Cristian [IT]
I try to have multiple log files using log4j and it doesn't seem to work. I want to be able to use separate property files when I initialize each of the categories (loggers). Each category is for a separate Java package. The top-level application uses all the packages and would expect a log file

RE: bug with MDC with patch

2002-07-03 Thread Mark Womack
Some other comments below... > I am wondering if someone could explain the pros and > cons of NDC and MDC. I have gone through the archives > of log4j-user. It seems like the general feeling was > that MDC is better. I want to be able to track a > user's session through the web site. So when I hi

RE: bug with MDC with patch

2002-07-03 Thread Mark Womack
Duh, guess I should have read to the end of your message for all the info. But, if you could please enter this information into the bug database, its resolution will get properly tracked, much better than via email. Thanks, -Mark > -Original Message- > From: Mark Womack > Sent: Wednesda

RE: bug with MDC with patch

2002-07-03 Thread Mark Womack
Eric, By "clientNumber" I take that you are referring to one of your specific keys that you have inserted into the MDC? So, the bug is that if I use the %X pattern without a specified key, log4j "blows up"? But, %X{} works just fine? Can you please enter a bug for the behavior you are seeing,

bug with MDC with patch

2002-07-03 Thread E Thors
I believe I have done my due diligence on this one. There seems to be a problem with MDC, when you specify the pattern %X without a clientNumber. The problem is that the current code does not handle it gracefully. It throws an exception and blows up the application. Could not find anything in bug

RE: Newbie filtering

2002-07-03 Thread Colin MacDonald
> -Original Message- > > Firstly I can not find any where a description of how to configure Log4j > using a XML file instead of a property file. Yeah, I've been wondering about that, too. Can't say I've put too much work into figuring it out, though. > Secondly I would like to filter m

RE: Newbie filtering

2002-07-03 Thread Thomas Muller
| Firstly I can not find any where a description of how to configure Log4j | using a XML file instead of a property file. You will find examples in the LOG4j_HOME/src/java/org/apache/log4j/xml/examples. Also have a look at the LOG4j_HOME/src/java/org/apache/log4j/xml/log4j.dtd file. | Secondl

Newbie filtering

2002-07-03 Thread Thomas Saxtoft
Hi I have recently started to use Log4j, and now I have encountered some issues that I can not find an answer for. Firstly I can not find any where a description of how to configure Log4j using a XML file instead of a property file. Secondly I would like to filter my output, in a way that only