logging-log4net-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Shireesh Thanneru <thann...@yahoo.com>
Subject Wrapping Log4Net with a Facade - How to get the correct Location Information
Date Thu, 25 Aug 2005 00:07:31 GMT
We are wrapping Log4Net with a home grown Facade along the lines of
sl4j. We are doing this basically for two reasons: to swap the
underlying logger (for e.g. replacing log4net with something else) and
to provide additional functionality at the Facade level (for example,
enforcing size limits for log messages, logging additional info
depending on the level, for e.g COM+ context info, etc). Everything is
working fine so far, but when log4net prints the
loggingEvent.LocationInformation, it is printing the Facade
location/caller information instead of the actual class that is logging
the message. What is the recommended way to solve this problem and
print the correct location information when we have a wrapper facade on
top of log4net?


Shireesh Thanneru


View raw message