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);
}
}
שלום, שמי דורון, אני בן 36 אב לשלוש בנות מקסימות וגר בכפר סבא
התחלתי לעבוד במיקרוסופט לפני כשלושה שבועות בתפקיד של מנהל תחום פיתוח תכנה בתחום התקשורת והפיננסים
אשמח לעזור לכם בכל נושאי ארכיטקטורת התכנה וסביבת הפיתוח והמוצרים של מיקרוסופט
בהצלחה ונתראה בהמשך
דורון