private void InitializeLogLevel() { string sLogLevel; try { sLogLevel = System.Configuration.ConfigurationManager.AppSettings["loglevel"]; } catch (Exception) { sLogLevel = "info"; } ServiceLog.ConfigLogLevel = ServiceLog.TranslateLogLevel(sLogLevel); }