View on GitHub
Clean Architecture Toolkit for .NET
Clean Architecture Toolkit is a clean, modular architecture foundation for .NET applications.
It embraces SOLID principles and focuses on maintainability, testability, and scalability through clear boundaries and pluggable design.

|   HOME   |   MODULE OVERVIEW   |   DEMO   |   CAT.RESPONSES   |

Code Reference

» Cat.Responses.Abstractions Assembly » Cat.Responses.Abstractions.Extensions Namespace » LoggerExtensions Class

LoggerExtensions.LogCatResponseErrors(this ILogger, ICatResponse, string, object[]) Method

Logs a message, followed by one log entry per error in the response’s ErrorList.

public static void LogCatResponseErrors(this Microsoft.Extensions.Logging.ILogger logger, Cat.Responses.Abstractions.ICatResponse catResponse, string message, params object[] args);

Parameters

logger Microsoft.Extensions.Logging.ILogger

The logger to write to.

catResponse ICatResponse

The response whose errors should be logged.

message System.String

The message to log before the individual errors.

args System.Object[]

The values to substitute into message’s placeholders.