13 lines
360 B
C#
13 lines
360 B
C#
// Copyright The OpenTelemetry Authors
|
|
// SPDX-License-Identifier: Apache-2.0
|
|
|
|
using Microsoft.Extensions.Logging;
|
|
|
|
namespace Benchmarks.Logs;
|
|
|
|
public static partial class Food
|
|
{
|
|
[LoggerMessage(Level = LogLevel.Information, Message = "Hello from {food} {price}.")]
|
|
public static partial void SayHello(this ILogger logger, string food, double price);
|
|
}
|