/// <summary> /// ロギングサービス取得 /// </summary> private ILoggingService GetLoggingService(ControllerLoggingConst.LoggingType Type) { switch (Type) { case ControllerLoggingConst.LoggingType.AppActionLog: return new AppActionLogService(); case ControllerLoggingConst.LoggingType.ExceptionLog: return new ExceptionLogService(); default: return null; } }
/// <summary> /// ログ書き込み /// </summary> public void WriteLog(ControllerContext controllerContext, ControllerLoggingConst.LoggingType Type) { GetLoggingService(Type).WriteLog(controllerContext); }