Re: log definition is in my pagebase

2009-02-21 Thread Ron Grabowski
The simplest solution is to use a logger per class instead of one shared logger.



- Original Message 
From: rodchar rodc...@hotmail.com
To: log4net-dev@logging.apache.org
Sent: Friday, February 20, 2009 10:54:25 AM
Subject: log definition is in my pagebase


Hi all,

i have a pagebase class where all my tiers inherit from. i'm using the
fileappender and i noticed the logger says it came from pagebase. is there a
way to tell it to report the inheriting class that actually logged the
record?

thanks,
rodchar
-- 
View this message in context: 
http://www.nabble.com/log-definition-is-in-my-pagebase-tp22120458p22120458.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.


Re: log definition is in my pagebase

2009-02-21 Thread Ulrich Proeller

I often experience, that users are tempted to use one shared logger
throughout their application. One reason for this may be the misconception,
that a logger is a quite big object and it is expensive to create and hold
many of them.
Perhaps it would be good to emphasize in the log4net documentation, that
loggers are leightweight objects and doesn't make any problem to hold
hundreds of them in an application.



Ron Grabowski wrote:
 
 The simplest solution is to use a logger per class instead of one shared
 logger.
 
 
 
 - Original Message 
 From: rodchar rodc...@hotmail.com
 To: log4net-dev@logging.apache.org
 Sent: Friday, February 20, 2009 10:54:25 AM
 Subject: log definition is in my pagebase
 
 
 Hi all,
 
 i have a pagebase class where all my tiers inherit from. i'm using the
 fileappender and i noticed the logger says it came from pagebase. is there
 a
 way to tell it to report the inheriting class that actually logged the
 record?
 
 thanks,
 rodchar
 -- 
 View this message in context:
 http://www.nabble.com/log-definition-is-in-my-pagebase-tp22120458p22120458.html
 Sent from the Log4net - Dev mailing list archive at Nabble.com.
 
 

-- 
View this message in context: 
http://www.nabble.com/log-definition-is-in-my-pagebase-tp22120458p22138107.html
Sent from the Log4net - Dev mailing list archive at Nabble.com.