I'm using log4j1.2.8, is there anyway to check for a particular
appender, say RollingFileAppender, whether it has a property, say
datePattern programmatically? And then my check is passed, then i need to
configure any values...
Will this be possible with log4j API's?
Your help appreciated.
Hi,
I have a requirement to create different log files in same application.Our
application will be used in a different web application.Even the other
application is using log4j.We have our own log4j configuration
property(WEB-INF/config.properties) file and separate log file in a
particular
If xyz and abc are different web apps then moving log4j.jar and
log4j.xml from common to WEB-INF/lib should keep the logs separate.
If they are in the same web app then they probably have different
logger name roots so you can configure each to use a different
appender. (i.e com.abc uses one
One option would be to using a test log4j.xml file that has appender
filters that filter out expected error messages. Maintaining that
might not be easy.
On 6/23/07, Bob Jacobsen [EMAIL PROTECTED] wrote:
I've got a bunch of code that uses log4j for logging, and a large
number of unit tests
Can you better explain the relationship between abc and xyz? It
sounds like xyz uses abc as a library and that abc also runs by
itself.
Repository selectors might help.
On 6/25/07, sivamma [EMAIL PROTECTED] wrote:
We dont know exactly how log4j is handled at XYZ(They are our customers).But
- Original Message -
From: sivamma [EMAIL PROTECTED]
To: log4j-user@logging.apache.org log4j-user@logging.apache.org
Sent: Mon Jun 25 09:11:16 2007
Subject: Re: Urgent Please--How to create different log files with different
property files in same webapplication
Hi, Thank you for
- Original Message -
From: sivamma [EMAIL PROTECTED]
To: log4j-user@logging.apache.org log4j-user@logging.apache.org
Sent: Mon Jun 25 09:11:16 2007
Subject: Re: Urgent Please--How to create different log files with different
property files in same webapplication
Hi, Thank you for
How exactly is log4j configured from abc and xyz? Directly through
code? Code referencing a config file? log4j automatically finding a
config file?
On 6/25/07, sivamma [EMAIL PROTECTED] wrote:
Hi, Thank you for immediate reply.
The problem is little different here.XYZ and abc are in same
Hi, Thank you for immediate reply.
The problem is little different here.XYZ and abc are in same application.XYZ
is using abc's jar files and jsps.
Our application(abc) have our own log4j configuration property file at
WEB-INF folder of XYZ(WEB-INF is common for both of XYZ and abc).
We are
We dont know exactly how log4j is handled at XYZ(They are our customers).But
in abc , we are referring a config file through our code.
Please find our java code.
==
package com.CK;
import java.io.File;
import
So does only your customer have the problem of mixed logs? It sounds
like they just need to change their config if they don't want mixed
logs.
But knowing how customers can be repository selectors might keep the
logs separate without the customer changing their config.
On 6/25/07, sivamma
Can you please explain me more.How to implement repository selectors.Please
send me some examples.
I tried to find in FAQs and some docs.But its not clear to me.
Thanks Regards,
Sivamma.
So does only your customer have the problem of mixed logs? It sounds
like they just need to change their
Hi
Hopefully someone can help me.
I want to configure log4j from a properties file.
I am writing a little java application. I have several log4j
appenders and everything works well. However I want the option to
exit application if ANY of log4j configuration fails.
By default I am seeing a
Search the mailing list archives. I have never used them -- I am just
somewhat familiar with what they do.
On 6/25/07, sivamma [EMAIL PROTECTED] wrote:
Can you please explain me more.How to implement repository selectors.Please
send me some examples.
I tried to find in FAQs and some docs.But
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
Hi there,
I have several Tomcats running and generating logs.
Within each Tomcat I have several Web-apps that generates logs.
All these logs are going into chainsaw, However I want to differentiate the
source of all logs.
That is It should display in the log message it self that this log
Did the updated version of logweb ever come out?
The web site appears to be out of date and unmaintained.
The the live demo link is broken, CVS web browse is broken, etc.
In February,
Nathan Coast wrote:
Hi all,
the current logweb is quite old, a new updated version with many
usability
17 matches
Mail list logo