
[source,csharp,diff-id=1,diff-type=noncompliant]
----
void MyMethod(List<MyObject> items) 
{
    logger.Debug("The operation started");
    foreach(var item in items) 
    {
        logger.Information($"Evaluating {item.Name}"); // Noncompliant
        var result = Evaluate(item);
        logger.Information($"Evaluating resulted in {result}"); // Secondary 1
        if (item.Name is string.Empty)
        {
            logger.Error("Invalid item name");
        }
        logger.Information("End item evaluation"); // Secondary 2
    }
    logger.Debug("The operation ended");
}
----