The problem with this approach is that storing this information on each
Category instance requires that the information be known at the time that
the Category is created. This has the effect of making configuration using
PropertyConfigurator and DOMConfigurator basically impossible, and means
that all annotation
I have (for the moment) implemented an alternate version in which the added
fields are static (rather than instance) members of category, which seems to
eliminate this problem.
Comments?
Josh Diamond
-----Original Message-----
From: Paul Glezen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 01, 2001 3:55 PM
To: LOG4J Developers Mailing List
Subject: Re: Need user name, hostname, etc. in log...
Josh,
Check out the org.apache.log4j.examples.appserver package. It was made for
just such a thing. I am using it on a large distributed production project
now.
Paul Glezen
IT Specialist
WebSphere Engagement Team
Tel: 818 539 3321
[EMAIL PROTECTED]
"Diamond, Josh M" <[EMAIL PROTECTED]> on 03/01/2001 12:40:05 PM
Please respond to "LOG4J Developers Mailing List"
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED], [EMAIL PROTECTED]
cc:
Subject: Need user name, hostname, etc. in log...
Greetings:
We are implementing a large, distributed system here and using log4j.
We wish to deploy a tree of SocketNode based remote loggers, so that
multiple application logs may be consolidated. The problem is that in the
remote logs there is no way to tell at which host, user, JVM, etc. the
original message was logged.
I am currently working around this using NDC, but that is very tedious,
especially with Swing applications where I do not create the thread in
which
work is actually done.
I propose adding the following to LoggingEvent:
static InetAddress inetAddress = InetAddress.localHost();
static String user = Properties.getProperty("user.name");
static Object otherData = null;
public static setOtherData(Object od) {otherData = od};
Obviously, the various layout classes would have to be modified to provide
the ability to render these values.
Am I too late for 1.1?
Comments?
Joshua Moses Diamond
Vice President
Robertson Stephens
[EMAIL PROTECTED]
+1 (212) 940-9649
<<Joshua Moses Diamond.vcf>>
----------------------------------------------------------------------------
--
DISCLAIMER
Notice Regarding Entry of Orders and Instructions:
Please do not transmit orders and/or instructions regarding your Robertson
Stephens account(s) by e-mail. Orders and/or instructions transmitted by
e-mail will not be accepted by Robertson Stephens, and Robertson Stephens
will not be responsible for carrying out such orders and/or instructions.
Notice Regarding Privacy and Confidentiality:
Robertson Stephens reserves the right to monitor and review the content of
all e-mail communications sent and/or received by its employees.
----------------------------------------------------------------------------
--
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
------------------------------------------------------------------------------
DISCLAIMER
Notice Regarding Entry of Orders and Instructions:
Please do not transmit orders and/or instructions regarding your Robertson Stephens
account(s) by e-mail. Orders and/or instructions transmitted by e-mail will not be
accepted by Robertson Stephens, and Robertson Stephens will not be responsible for
carrying out such orders and/or instructions.
Notice Regarding Privacy and Confidentiality:
Robertson Stephens reserves the right to monitor and review the content of all e-mail
communications sent and/or received by its employees.
------------------------------------------------------------------------------
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]