p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   General .NET (http://p2p.wrox.com/forumdisplay.php?f=122)
-   -   Using logging class as a static class (http://p2p.wrox.com/showthread.php?t=70054)

punitw August 14th, 2008 03:03 AM

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.

All times are GMT -4. The time now is 01:11 PM.

Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.