Doron Caspin

Linux is user friendly - it's just picky about it's friends.

Browse by Tags

All Tags » logger (RSS)
How to use different config source in entlib logger
This post would help developer that want to use entlib with different config file not app.config or web.config Enjoy public class LogMgr { private static IConfigurationSource _configSource; private static LogWriter _logWriter; static LogMgr() { m_configSource = ConfigMgr.FileConfigurationSource; LogWriterFactory logWrtFact = new LogWriterFactory(_configSource); logWriter = logWrtFact.Create(); logWriter.Write(logEnt); } } Technorati Tags: logger , entlib , config file