Sent from my iPhone
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]
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
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
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:
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
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
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:
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
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
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
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
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
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
14 matches
Mail list logo