😊

2012-07-27 Thread GALLAGHER, RON
Sent from my iPhone

Deployment of 1.2.14 to Maven repository at ibiblio.org

2006-11-28 Thread Gallagher, Ron
All -- Are there any plans to deploy version 1.2.14 to a the Maven repository that's hosted at ibilio.org? Ron Gallagher - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: How to use log4j (log4j.xml) and Maven and Junit??

2007-01-24 Thread Gallagher, Ron
Lisa -- You don't need to make any modifications to the mvn script to accomplish what you're trying to do. Here's what we do... 1) Set up a directory that will contain resource/configuration files that you want available when you run your tests. For us, we use ${basedir}/src/test/config 2) Put

RE: Logger (not Appender) Filter

2007-01-24 Thread Gallagher, Ron
Brett -- I can't address the reasons for why filters aren't allowed at the logger level, but I can offer you a solution to your problem. Appenders can be nested. Simply attach an appender "A" to the logger for "com.xyz.dostuff". The configure appender "A" with the filter you've described and th

RE: Configuring Log4J with Maven Testing and Production

2007-04-03 Thread Gallagher, Ron
Mark -- Try this: 1) Rename the log4j.xml file that you use for testing to something else, perhaps test-log4j.xml. Keep it in the src/test/resources directory. 2) Make sure that you've included a testResource entry in your pom that includes the test-log4j.xml file. Something like this:

RE: Configuring Log4J with Maven Testing and Production

2007-04-05 Thread Gallagher, Ron
I've added an entry to the wiki page you referenced. Ron Gallagher -Original Message- From: Jacob Kjome [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 03, 2007 10:16 PM To: Log4J Users List Subject: RE: Configuring Log4J with Maven Testing and Production This might make a good wiki en

RE: Logger level being ignored

2007-05-23 Thread Gallagher, Ron
Ben -- Here's your problem: log4j: Setting [org.apache.commons.httpclient] additivity to [true]. With the additivity of the org.apache.commons.httpclient logger set to true, any logging output that is processed by the org.apache.commons.httpclient will also be processed by any explicitly configu

RE: Third Party Appenders

2007-05-23 Thread Gallagher, Ron
Gilbert -- You can accomplish what you want using the components that come packaged w/ log4j. Here's a log4j configuration that should accomplish your goals. Explanations follow:

RE: Third Party Appenders

2007-05-23 Thread Gallagher, Ron
Roger -- I'm not aware of an existing appender that does what you're asking, but it wouldn't be difficult to create one. Just create a class that extends org.apache.log4j.AppenderSkeleton and override the append(LoggingEvent) method. In append(LoggingEvent), you'd run whatever program you wanted

RE: Configuring a file appender using environment variable

2007-06-01 Thread Gallagher, Ron
Quinn -- Use the syntax ${xxx} in your configuration file, replacing xxx with the name of the system property that you want to use. Ron Gallagher, AT&T Mobility -Original Message- From: Cheung, Quinn [mailto:[EMAIL PROTECTED] Sent: Friday, June 01, 2007 10:06 AM To: Log4J Users List Sub

RE: Unable to call doRender. Am I missing anything?

2007-06-01 Thread Gallagher, Ron
Naider -- The purpose of Renderers is to generate a String representation of an Object. Since a String is already a String, there's no need to do any additional rendering. The getRenderedMessage method in the LoggingEvent is what is responsible for calling any defined renderers. This method has

RE: JUnit testing of output logged with log4j?

2007-06-25 Thread Gallagher, Ron
Bob -- Have you considered using an appender that doesn't write to any files but simply collects all messages for later analysis? Here's how: 1) Create an appender that simply stores all logging messages in a static array. This appender should also provide static methods to (a) retrieve all mes

RE: Log4j Configuration

2007-06-28 Thread Gallagher, Ron
Ed -- Here's my recommendation: 1) Create a class that extends java.io.PrintStream. 2) In this class, override the public void println(String) method. In the overridden method, evaluate the string that's being written. If the string that's being written begins with "log4j:ERROR ", then record t

RE: Could not instantiate appender named "console"

2010-10-18 Thread GALLAGHER, RON (ATTSI)
Hamed, I believe this is the key message for you: Could not find value for key log4j.appender.console You've configured an appender named "CONSOLE", but you haven't configured one named "console". Case matters. Change these three lines: log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender