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; } }
private static void OnDislyEvent(DislyEventArgs eventArgs) { DislyEvent(null, eventArgs); }