RE: Chainsaw V2 config file for DBAppender

2005-04-20 Thread Scott Deboy
I haven't used UrlConnectionSource, but I use DriverManagerConnectionSource with CustomSQLDBReceiver. Here's my receiver config. You may want to try copying this example's connectionsource section into your config & changing the appropriate info.

UGLI's ULogger and setLevel()

2005-04-20 Thread David Kohn
Hello, I'm exploring Log4j's UGLI interface as a logging-pkg abstraction option. Is there a way to (programmatically) set the logging level of a ULogger? Or is this only controllable via the config file? For instance, I'd like to do something like this: ULogger logger = LoggerFactory.getLogger

xml properties file

2005-04-20 Thread Dave Pawson
In the plain text version I'm using log4j.appender.dest1.layout.ConversionPattern=%d{-MMM-dd HH:mm}%-5p%m%n In the xml version this would be invalid (markup in an attribute value) http://www.w3.org/TR/2004/REC-xml11-20040204/#syntax Do others find it a nuisance to have to escape characters

Chainsaw V2 config file for DBAppender

2005-04-20 Thread Darren Hartford
Hey all, Trying to use Chainsaw via configuration file as recommended for use with the DBAppender. My configuration file loaded with Chainsaw looks like this: == http://jakarta.apache.org/log4j/"; debug="false">

RE: Colors in console appender

2005-04-20 Thread Dave Pawson
On Wed, 2005-04-20 at 08:45 +0100, [EMAIL PROTECTED] wrote: > > > in the log4j-1.2.8.jar, there is a dtd present at > org/apache/log4j/xml/log4j.dtd Thanks Nigel. I think jar enables extraction of individual files doesn't it? I'll have a go. regards DaveP --

RE: Dynamic Loggers

2005-04-20 Thread Irving, Dave
> Everything in Log4j can be accessed programatically. Thanks, So, if the Log4J API allows it, could someone please point me towards the correct way to ** remove ** a logger? I certainly cant see it in the documentation. Thanks, Dave -Original Message- From: Jacob Kjome [mailto:[EMAI

RE: Dynamic Loggers

2005-04-20 Thread Irving, Dave
> Everything in Log4j can be accessed programatically. Thanks, So, if the Log4J API allows it, could someone please point me towards the correct way to ** remove ** a logger? I certainly cant see it in the documentation. Thanks, Dave -Original Message- From: Jacob Kjome [mailto:[EMAIL

Re: Dynamic Loggers

2005-04-20 Thread Jacob Kjome
Quoting "Irving, Dave" <[EMAIL PROTECTED]>: > Hi, > > Id like to switch an application over from using legacy logging software > to log4j. > In the application I am logging for, Loggers really can be dynamic (e.g. > plug-ins can be dynamically loaded and unloaded, and should really have > their ow

RE: How to specify log file path using env variable

2005-04-20 Thread Jacob Kjome
Quoting Jitendra Kharche <[EMAIL PROTECTED]>: > Hi Jake, > > Thanks. The way you have suggested is another good way. But my problem > is little different. I want to use a system variable in the path of log > file. If I do using your method, it will still be a hardcoded path > because once I code i

Dynamic Loggers

2005-04-20 Thread Irving, Dave
Hi, Id like to switch an application over from using legacy logging software to log4j. In the application I am logging for, Loggers really can be dynamic (e.g. plug-ins can be dynamically loaded and unloaded, and should really have their own logging domain). Im going to want each Logger to have it

Re: Extend or Wrap

2005-04-20 Thread log4j_rocks
Thanks. The callAppenders method does not jump out like the forcedLog method does when looking for a way to always log, but now the two methods are associated in the archives so it's all good. Since I wrote my response, I've implemented an "Always Log" use case by extending the Level class:

RE: Extend or Wrap

2005-04-20 Thread Bender Heri
Hi Antoine I dont have an example how to deal with new levels but annother point is important while wrapping. You have to use the overloaded method log(String callerFQCN, Priority level, Object message, Throwable t) where you pass as first parameter the name of the wrapper class. The renderer w

RE: How to specify log file path using env variable

2005-04-20 Thread Jitendra Kharche
Hi Jake, Thanks. The way you have suggested is another good way. But my problem is little different. I want to use a system variable in the path of log file. If I do using your method, it will still be a hardcoded path because once I code it in the ServletContextListener, I can not change it on th

RE: Extend or Wrap

2005-04-20 Thread Antoine TYNEVEZ
Actually, I need to have something like : --- logger.harmless("my message", "ERROR CODE", "PARAM2"); logger.minor("my message", "ERROR CODE", "PARAM2"); -

RE: Colors in console appender

2005-04-20 Thread Nigel . Byrnes
in the log4j-1.2.8.jar, there is a dtd present at org/apache/log4j/xml/log4j.dtd -- Nigel Byrnes RBS Insurance 0845 878 2911 Dave Pawson