Help Setting up logging with a DBAppender

2006-01-19 Thread Jonathan Gurfinkel
Hi would like to see an example properties file configuring a DBAppender properly using a DBConnectionSource. Thanks in advance ** IMPORTANT MESSAGE ** This email is intended only for the use of the individual or entity name above and may contain information that is c

Re: Silly log4j newbie question

2006-01-19 Thread Clemens Eisserer
Hi Javier, thanks a lot, this solved the problem. I thought I missed some more fundamental but as always the small things cause the problems I get stuck ;) Thanks a lot, lg Clemens btw. Log4J is thousand times cooler than the hand-rolled logging I used before. Thanks for it! > you missed "logge

Re: Silly log4j newbie question

2006-01-19 Thread Javier Gonzalez
you missed "logger" between "log4j" and your logger. log4j.logger.PalmeLogger= debug, stdout, std_logfile cheers, Javier On 1/19/06, Clemens Eisserer <[EMAIL PROTECTED]> wrote: > Hi there, > > I know for a professional this must be pure newbie-style question, > however I read the log4j tutoria

Silly log4j newbie question

2006-01-19 Thread Clemens Eisserer
Hi there, I know for a professional this must be pure newbie-style question, however I read the log4j tutorial and can't find the appropriate answer :-( In code I request a logger like this: Logger palmeLogger = Logger.getLogger("PalmeLogger"); In the config-file I configure it like this: log4j

R: R: Application with two loggers - The second one doesn't log anything

2006-01-19 Thread Pagnin Roberto
Thanks, I'll give it a try if the test-publishers will be up and running. I'll let you know... Rob -Messaggio originale- Da: James Stauffer [mailto:[EMAIL PROTECTED] Inviato: giovedì 19 gennaio 2006 17.30 A: Log4J Users List Oggetto: Re: R: Application with two loggers - The second one d

Re: R: Application with two loggers - The second one doesn't log anything

2006-01-19 Thread James Stauffer
You only need the -D option to specify the configuration file if you use automatic configuration. Since you use PropertyConfigurator.configureAndWatch, you don't need to use -D. In your properties file you probably need to specify a level for the root logger. On 1/19/06, Pagnin Roberto <[EMAIL P

Re: About problems with log4j.xml

2006-01-19 Thread Jacob Kjome
Well, since Tomcat doesn't use Log4j directly (except via commons-logging) and Log4j doesn't exist in the stack trace, it seems to me that the cause is probably not Log4j or its property files. That said, if Log4j is involved and it is a matter of what is in the configuration, then I guess it wou

RE: ObjectRenderer Config and Usage

2006-01-19 Thread Bender Heri
The output of the self written object renderer is a string. This will be handled by the pattern like you would have put a string directly, means the %m switch will be replaced by your string. Heri > -Original Message- > From: Anant K [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 1

R: Application with two loggers - The second one doesn't log anything

2006-01-19 Thread Pagnin Roberto
Hi James, I put the -D because I've read on some forums that the error "Log4j:WARN. No appenders could be found for logger(MyLoggerThread.class) " is a problem of pointing to the right log4j config file (so this was one of the many tries for solving the trouble). In the application I configur