View Single Post
  #1 (permalink)  
Old August 14th, 2008, 03:03 AM
punitw punitw is offline
Registered User
 
Join Date: Aug 2008
Location: , , .
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Using logging class as a static class

Using logging class as a static class

I am stuck on a choice decision.
We have wrapped Log4Net in a class (say CustomLogger) with ILog object as Static object. We have also decided that the CustomLogger Class will also be static. This will help us make a log call like CustomLogger.Log(message) without giving the developers any hassles of creating CustomLogger class objects just to log.

The CustomLogger does not have any state in it. it just has a few methods to log.

The CustomLogger class will be accessed from the various layers of application accessed by many users.

My question is, does making class as CustomLogger class as static has an impact on performance.

Reply With Quote