Empty log message (ARCH1008)
Key dotnet.logging.empty-log-message · Severity error · Category logging
Empty or whitespace-only log messages carry no information and clutter the logs. Always write a meaningful message.
Incorrect
Section titled “Incorrect”_logger.LogInformation("");Correct
Section titled “Correct”_logger.LogInformation("Order {OrderId} queued", orderId);Replace the empty template with a meaningful message that describes the event and includes the necessary context.