logging-log4cxx-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Woods" <adam.wo...@rwwa.com.au>
Subject RE: Accessing a LoggingEvent's properties using a PatternLayout
Date Mon, 22 Sep 2008 01:11:21 GMT

Can anybody help me with this issue?

Is this a feature which was missed or is planned for a later release?

Your help is greatly appreciated.

Cheers,
Adam Woods

-----Original Message-----
From: Adam Woods [mailto:adam.woods@rwwa.com.au]
Sent: Wednesday, 17 September 2008 10:18 AM
To: log4cxx-user@logging.apache.org
Subject: Accessing a LoggingEvent's properties using a PatternLayout


Hello List,

I am trying to make use of the LoggingEvent's properties map so that my
logs contain extra data specific to an event. This is implemented in
log4net, so I didn't think I would run into any problems.

However, on further investigation, the documentation and the code both
suggest that there is no way to actually access the LoggingEvent's
properties using the PatternLayout's syntax.

Are the LoggingEvent's properties intended for this kind of use, or am I
going about this the wrong way?

Cheers,
Adam Woods


Disclaimer:
1. The contents of this email and its attachments are confidential and
privileged. Any unauthorised use, or passing on, of the information to
others who are not authorised is expressly prohibited. If you receive
this email in error, please advise us and then delete the email with any
attachments.

2. Before opening or using attachments, check them for viruses and
defects. The contents of this email and its attachments may become
scrambled, truncated or altered in transmission. Please advise us of any
anomalies.

3. Racing & Wagering WA's liability  is limited to resupplying the email
and attached files or the cost of having them resupplied.

4. The views represented in this email are those of the author and do
not necessarily represent those of Racing & Wagering WA unless this is
clearly indicated.


Disclaimer:
1. The contents of this email and its attachments are confidential and privileged. Any unauthorised
use, or passing on, of the information to others who are not authorised is expressly prohibited.
If you receive this email in error, please advise us and then delete the email with any attachments.

2. Before opening or using attachments, check them for viruses and defects. The contents of
this email and its attachments may become scrambled, truncated or altered in transmission.
Please advise us of any anomalies.

3. Racing & Wagering WA's liability  is limited to resupplying the email and attached
files or the cost of having them resupplied.

4. The views represented in this email are those of the author and do not necessarily represent
those of Racing & Wagering WA unless this is clearly indicated.

Mime
View raw message