DCSIMG
November 2007 - Posts - Doron Caspin

Doron Caspin

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

November 2007 - Posts

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: ,,

הכרות

שלום, שמי דורון, אני בן 36 אב לשלוש בנות מקסימות וגר בכפר סבא

התחלתי לעבוד במיקרוסופט לפני כשלושה שבועות בתפקיד של מנהל תחום פיתוח תכנה בתחום התקשורת והפיננסים

אשמח לעזור לכם בכל נושאי ארכיטקטורת התכנה וסביבת הפיתוח והמוצרים של מיקרוסופט

בהצלחה ונתראה בהמשך

דורון

שלום לכולם

זה ה POST הראשון שלי