Exemple #1
0
        private void CmsRepository_DislyEvent(object sender, DislyEventArgs e)
        {
            switch (e.EventLevel)
            {
            case LogLevelEnum.Debug:
                AppLogger.Debug(e.Message, e.Exception);
                break;

            case LogLevelEnum.Error:
                AppLogger.Error(e.Message, e.Exception);
                break;

            case LogLevelEnum.Warn:
                AppLogger.Warn(e.Message, e.Exception);
                break;

            case LogLevelEnum.Info:
                AppLogger.Info(e.Message, e.Exception);
                break;
            }
        }
Exemple #2
0
 private static void OnDislyEvent(DislyEventArgs eventArgs)
 {
     DislyEvent(null, eventArgs);
 }