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.
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/
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
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
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
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()
{
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
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