예제 #1
0
        // wrappers for logging
        private void Log(ConfigurationSetting.LogLevelEnum level, string msg, string note, int _RntIncidentId, int _RntContactId)
        {
            string sub = msg + String.Format(" for iid {0}, cid {1}", _RntIncidentId, _RntContactId);
            var    log = ConfigurationSetting.logWrap;

            switch (level)
            {
            case ConfigurationSetting.LogLevelEnum.Error:
                log.ErrorLog(_RntIncidentId, _RntContactId, sub, note);
                break;

            case ConfigurationSetting.LogLevelEnum.Notice:
                log.NoticeLog(_RntIncidentId, _RntContactId, sub, note);
                break;

            default:
                log.DebugLog(_RntIncidentId, _RntContactId, sub, note);
                break;
            }
        }
예제 #2
0
        // wrappers for logging
        private void Log(ConfigurationSetting.LogLevelEnum level, string msg, string note)
        {
            var sb  = new StringBuilder(string.Format("{0} Order Management ", _Model.ServerType));
            var sub = sb.Append(msg)
                      .Append(String.Format(" for iid {0}, cid {1}", _Model.RntIncidentId, _Model.RntContactId))
                      .ToString();
            var log = ConfigurationSetting.logWrap;

            switch (level)
            {
            case ConfigurationSetting.LogLevelEnum.Error:
                log.ErrorLog(_Model.RntIncidentId, _Model.RntContactId, sub, note);
                break;

            case ConfigurationSetting.LogLevelEnum.Notice:
                log.NoticeLog(_Model.RntIncidentId, _Model.RntContactId, sub, note);
                break;

            default:
                log.DebugLog(_Model.RntIncidentId, _Model.RntContactId, sub, note);
                break;
            }
        }