6 messages in org.apache.logging.log4j-userRE: Using log4j for writing a library...
FromSent OnAttachments
Marepalli, SomeshJun 3, 2004 2:32 pm 
Jacob KjomeJun 3, 2004 5:33 pm 
WJCarpenterJun 3, 2004 10:26 pm 
Marepalli, SomeshJun 4, 2004 6:05 am 
Marepalli, SomeshJun 4, 2004 6:11 am 
Jacob KjomeJun 4, 2004 5:05 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: Using log4j for writing a library...Actions...
From:Marepalli, Somesh (Some@ca.com)
Date:Jun 4, 2004 6:11:58 am
List:org.apache.logging.log4j-user

Hi: Thanks for the reply. In general, I noticed some undesirable effects of using the default configuration when no configuration file is provided:

a) it defaults to debug level when no configuration is done b) it emits warning messages to the console

I don't know the intent and purpose for the above, but I am sure there's some good reason. For my use case, it does not fit the needs.

Hence, I am trying to use the approach of using an internal .properties file used to explicitly configure log4j. But, I would not like to do this till I am sure users of my library have not configured log4j.

I saw the snippet of code to detect if log4j is configured in http://wiki.apache.org/logging-log4j/Log4JProjectPages/UsefulCode

Thanks for the link. Is the code above the only reliable way to detect if log4j (1.2.8) is configured?

Have other users tried this approach?

Regards -Somesh

-----Original Message----- From: WJCarpenter [mailto:bill@carpenter.ORG] Sent: Friday, June 04, 2004 1:27 AM To: Log4J Users List Subject: Re: Using log4j for writing a library...

I am writing a Java based library for which I am using the log4j package (version 1.2.8) a) Are there any special things we need to worry about configuration.

Since you are writing a library, you have to be aware of what log4j does by default if nobody does any configuration at all. Here a message thread that discusses it: