protected virtual void LogRequest(object request, OperationLogSettings operationLogSettings) { if (operationLogSettings.IsLogging) { _logger.Log(operationLogSettings.LogLevel, "{request}", request); } }
protected virtual void LogValidation(IEnumerable <ValidationResult> validationResults, OperationLogSettings operationLogSettings) { if (operationLogSettings.IsLogging) { _logger.Log(operationLogSettings.LogLevel, "Validation failed"); } }
public InvokeResultSettings() { ValidationLogSettings = new OperationLogSettings { IsLogging = true, LogLevel = LogLevel.Debug }; LogRequestLogSettings = new OperationLogSettings { IsLogging = true, LogLevel = LogLevel.Debug }; InvokeFunctionLogSetttings = new InvokeFunctionLogSetttings { LogInvokeResult = LogInvokeResult.IsFail, LogLevel = LogLevel.Debug }; }