Various fields in log4j.properties

2008-05-08 Thread lp_1431
Kindly please let me know all the fields that can be put in the log4j.properties file. Thanks -- View this message in context: http://www.nabble.com/Various-fields-in-log4j.properties-tp17120176p17120176.html Sent from the Log4j - Users mailing list archive at Nabble.com.

JDBCAppender

2008-05-08 Thread Simonebernardi
Hi all, I have a problem with JDBCAppender. I wrote a configuration file, but the table does not write anything and not give me any errors. why? appender name=JDBC class=org.apache.log4j.jdbc.JDBCAppender param name=url value=jdbc:mysql://localhost:3306/sicve_uel1/

RE: JDBCAppender

2008-05-08 Thread Bender Heri
Have you attached the appender to any logger? Heri -Original Message- From: Simonebernardi [mailto:[EMAIL PROTECTED] Sent: Thursday, May 08, 2008 12:12 PM To: log4j-user@logging.apache.org Subject: [SPAM (DNS Blacklist)] - JDBCAppender - Sending mail server found on list.dsbl.org

Re: JDBCAppender

2008-05-08 Thread Simonebernardi
Yes root     appender-ref ref="JDBC"/ /root Bender Heri ha scritto: Have you attached the appender to any logger? Heri -Original Message- From: Simonebernardi [mailto:[EMAIL PROTECTED]] Sent: Thursday, May 08, 2008 12:12 PM To: log4j-user@logging.apache.org

RE: Understanding log levels

2008-05-08 Thread Tasso Angelidis
So as an example? class MyClass { Logger eventLogger = Logger.getLogger(MyClass.EventLogger); Logger opsLogger = Logger.getLogger(MyClass.OpsLogger); void someMethod() { eventLogeger.warn(Server stoppped); opsLogger.warn(Server

Re: Understanding log levels

2008-05-08 Thread Curt Arnold
On May 8, 2008, at 8:23 AM, Tasso Angelidis wrote: So as an example? class MyClass { Logger eventLogger = Logger.getLogger(MyClass.EventLogger); Logger opsLogger = Logger.getLogger(MyClass.OpsLogger); void someMethod() {

Re: log4j.properties file outside jar file?

2008-05-08 Thread Jacob Kjome
Why do you feel the need to define -Dlog4j.configuration?  Auto-configuration should pick up log4j.properties on its own.  Have you tried that?  Otherwise, to point to the props inside the jar file, you need... java -Dlog4j.configuration=jar:file:/full/path/to/myapp.jar!/log4j.properties -jar

log timestamp not in sync with system time

2008-05-08 Thread kadaba
My logs are not in sync with the system time. I am not sure why this behavior.I had changed timezone to gmt in one of the classes,I initially thought that this might be the problem but i ran a sample application in which the behavior did not occur. I am not sure why this is happening. Can anyone