Error while logging to mysql database

2002-11-18 Thread Abhijeet Sarwate
Hi, I am trying to log data to mysql database. Here is the configuration file: log4j.rootLogger= DEBUG, R log4j.appender.R=org.apache.log4j.jdbc.JDBCAppender log4j.appender.R.URL=jdbc:mysql://localhost/abhijeetlogs log4j.appender.R.user=root log4j.appender.R.password="" log4j.appender.R.layout=o

Re: Using NDC

2002-11-18 Thread Ceki Gülcü
Did you try the log4j web site? At 02:34 19.11.2002 -0500, you wrote: Hi, Can somebody tell me how to use NDC ? Is there any good site to find more info about NDC and examples abhijeet -- Ceki TCP implementations will follow a general principle of robustness: be conservative in what you do,

RE: Using NDC

2002-11-18 Thread Chintalapati, Shyam
Two links: 1) http://www.onjava.com/pub/a/onjava/2002/08/07/log4j.html?page=3 Download the .war file from the link on the first page. 2) http://www.mail-archive.com/log4j-user%40jakarta.apache.org/ Go to the above page and search for ndc term. - shyam > -Original Message- > Fr

Using NDC

2002-11-18 Thread Abhijeet Sarwate
Hi, Can somebody tell me how to use NDC ? Is there any good site to find more info about NDC and examples abhijeet -- To unsubscribe, e-mail: For additional commands, e-mail:

RE: Exemple ObjectRenderer ?

2002-11-18 Thread Thomas Muller
package my.package; public class FooRenderer implements org.apache.log4j.or.ObjectRenderer { public String doRender( Object fooInstance ) { return( "foo instance is [" + fooInstance + "]" ); } } In your XML config file: Now Log4j will use FooRenderer to stringify all Foo objects in

Exemple ObjectRenderer ?

2002-11-18 Thread Herve AGNOUX
Hi, I search an exemple with ObjectRenderer, because I understand nothing. Thanks in advance. -- SARL diaam informatique - 04 50 77 12 60 Ingenierie, développements de systèmes d'information http://www.diaam-informatique.com -- To unsubscribe, e-mail: For additio

RE: Question of inheritance

2002-11-18 Thread Christophe Marcourt
Thank you very much Christophe Marcourt Mondeca Ingenieur R&D 3, Cite Nollez. 75018 Paris Phone : +33 1 44 92 35 03 Mobile : +33 6 14 48 65 66 Fax : +33 1 44 92 02 59 http://www.mondeca.com/fr ICQ : #119811844 -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Envoye :

RE: Question of inheritance

2002-11-18 Thread Daniel . Hannum
It's a standard param to appenders, i.e. just as "File" is a parameter that you can set for FileAppenders, "Threshold" is something you can set, too. So it's log4j.appender..Threshold=DEBUG or, analogously in XML within an appender tag dan "Christophe Marcourt" <[EMAIL PROTECTED]> on 1

RE: Question of inheritance

2002-11-18 Thread Christophe Marcourt
Thank you Dan, I'm not sure I understand what you did to fix this up. How can you specify a level on an appender ? Cheers Christophe Marcourt Mondeca Ingenieur R&D 3, Cite Nollez. 75018 Paris Phone : +33 1 44 92 35 03 Mobile : +33 6 14 48 65 66 Fax : +33 1 44 92 02 59 http://www.mondeca.com/fr I

RE: Question of inheritance

2002-11-18 Thread Daniel . Hannum
I noted this a while back, posted a question, but never got a reply. When logs are passed up the tree to parent loggers, the parent loggers don't check the log event against their own level. The level check is *only* done at the logger through which the log enters. I fix this by specifying level

RE: Question of inheritance

2002-11-18 Thread Christophe Marcourt
I thought it was that as well but nope ! I put a root logger : But now I've got twice the trace (normal...) ! So, it's the last level logger which is prior to its parents and ancestors ? Christophe Marcourt Mondeca Ingenieur R&D 3, Cite Nollez. 75018 Paris Phone : +3

Re: Question of inheritance

2002-11-18 Thread ByTek - Stefan Bayer
Christophe, what about the ROOT logger? As foo.bar not only inherits from foo but also from ROOT, you may have to turn ROOT off, too. Stefan ByTek - Stefan Bayer Softwaresysteme [EMAIL PROTECTED] -- To unsubscribe, e-mail: For addition

Question of inheritance

2002-11-18 Thread Christophe Marcourt
Hi, Suppose I have a logger called foo with a OFF level, and another logger called foo.bar with a DEBUG level, the definition in XML file will be : Am I right ? I think so. Now how works the inheritance ? If in my java code I invoke the in