Senthil-
you could comment out all the Logger info in conf/server.xml
and dont do any System.outs
Does this help?
-M
- Original Message -
From: <[EMAIL PROTECTED]>
To: "Log4J Users List" <[EMAIL PROTECTED]>
Sent: Thursday, February 06, 2003 7:01 PM
Subject: log written in catalina.out and l
I solved this problem. It appears that chainsaw is expecting logger in place of
category in the XMLLayout output file. By modifying XMLFileHandler like so, I was
able to get it to work correctly.
@@ -115,6 +115,9 @@
mThreadName = aAtts.getValue("thread");
mTimeSta
Hi,
I am using Log4j and tomcat web server. The log messages gets logged into
both
my log file and also catalina.out.
I dont want log to be written in catalina.out.
The log4j properties file is given below..
I appreciate for your time and help,
Senthil.
I do not think that is correct. AsyncAppender will make sure to set the
proper MDC values in the LoggingEvent. As long as you access the MDC
through the LoggingEvent you are safe.
At 17:39 06.02.2003 -0500, you wrote:
Sorry for the delay in response.
If you plan to attach your JDBCAppdender to
Sorry for the delay in response.
If you plan to attach your JDBCAppdender to an AsynchronousAppender, be
warned that the MDC style approach will not work as the context of the
Thread that logs the message will be different from the Appender that
actually writes the data.
-D
At 07:54 PM 1/27/2
Hi,
I have used the Log4J org.apache.log4j.jdbc.JDBCAppender for logging
messages to a RDBMS.
But, recently noticed a warning message on usage of the JDBCAppender at:
http://jakarta.apache.org/log4j/docs/api/org/apache/log4j/jdbc/JDBCAppender.
html
I would like to know if JDBCAppender is going
Hi,Mark:
Thank you so much for your reply.
Sorry for not providing enough information.
The following is the description of what I am attemping to accomplish:
We have developed a web application. Now I am developing a swing application
which is used to monitor some major activities (such as place
Sandeep
The javadoc states
Classes that require special handling during the serialization and
deserialization process must implement special methods with these exact
signatures:
private void writeObject(java.io.ObjectOutputStream out)
throws IOException
private void readObject(java.io.Objec
Sorry, actuall option #1 would need to be:
private static Category log = Category.getInstance( EmployeeVO.class );
instead...
|-Original Message-
|From: Ebersole, Steven [mailto:[EMAIL PROTECTED]]
|Sent: Thursday, February 06, 2003 11:54 AM
|To: 'Log4J Users List'; '[EM
So do one of the following:
1)
public class EmployeeVO implements java.io.Serializable
{
private static Category log = Category.getInstance( getClass() );
...
public getName()
{
try
{
...
}
catch(Exception e)
{
log.err
Nancy,
Can you give more detail of what you are trying to accomplish. The
SocketHubAppender does not accept any configuration for the XMLAppender. It
is just a mechanism to stuff the logging event over a socket to a remote
client. The remote client would be responsible for setting up an
XMLAppe
Of course; because it is defined as transient it does not get serialized
during object serialization and thus cannot be deserialized during object
deserialization. There are two ways of handling this:
1) Does this really need to be an instance variable? In other words can
this not be a static va
My EmployeeVO valueobject class looks like:
public class EmployeeVO implements java.io.Serializable
{
private transient Category log = Category.getInstance( getClass() );
...
public getName() {
try {
...
} catch(Exception e)
Although the error message has disappeared, problem with log4j still persists. In
EmployeeVO, I am calling log.debug(..) in the exception and it is throwing null
pointer exception, i.e., log variable is null! I have defined
private transient Category log = Category.getInstance(getClass());
in
Hello,
Would like to make an XML config file generator that gets different
attributes from a GUI application (e.g. debug-level, string to filter) and
generates a log4j XML config file.
Is there an "XML generator" that upon building a tree of dependencies can
generate an XML file?
thank
Howdy,
>2> Are there disadvantages?
One that actually matters to me in practice: if you use an xml config
file, it has to be a separate file from others. If you use a properties
config file, you can have properties for many different components (your
app, log4j, castor is a common combination fo
Hello,
As I understand, the advantage of using the XML format config file over the
'.properties' config file is the customized filtering ability.
1> Are there other advantages in favor of the XML format config file usage?
2> Are there disadvantages?
3> Is there a plan in the near future to have t
17 matches
Mail list logo