logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jacob Kjome" <h...@visi.com>
Subject Re: Log4j with multiple files converting to xml
Date Wed, 08 Dec 2010 17:12:08 GMT
I suggest that you take a crack at the configuration yourself.  If you still 
have questions, post it and we can help you tweak it.


On Wed, 8 Dec 2010 08:16:44 -0800 (PST)
  Refr Bruhl <refr_bruhl@yahoo.com> wrote:
> Greetings
> I tried searching for this on the mail archives link, the link seems to be 
> changed.
> My goal:
> I have 4 files for logging. ConLogger -> logs to console, lgLogger -> logs 
>to a 
> log file, qryLogger that logs to a log file, delLogger that logs to a log 
> and exLogger that logs to a log file
> lgLogger logs generall aplication activity. I have used addAppender to 
> everything logged to the console is also logged to lgLogger
> qryLogger logs nothing but query information
> exLogger logs all exception errors
> All 4 of these files can support debug thru fatal entries.
> I have used this same pattern in several "batch" type jobs for about 4 years 
> now.
> These files are configured in the primary java class.
> What I want to do is change the configuration from "hard" coding these log 
> in the app to using xml files for configuration. 
> The problem I am running into is it seems when using xml or property files 
> makes the assumption of only one logger with multiple appenders per xml 
>file. I 
> want or think I want 4 distinct loggers with each having a separate 
> Is this correct? Has anyone else tried to do something similar with log4j? 
> idea on how to achieve this?
> Thanks!
> --Refr inn gra
> "Wars are to be won with swords and spears, 
> not with rice and salt." -- Uesugi Kenshin

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message