From 82e03978b89938219958032efb1448cc76baa181 Mon Sep 17 00:00:00 2001 From: Saumit Date: Sat, 27 Sep 2025 02:14:26 +0530 Subject: Initial snapshot - OpenTelemetry demo 2.1.3 -f --- src/accounting/Log.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 src/accounting/Log.cs (limited to 'src/accounting/Log.cs') diff --git a/src/accounting/Log.cs b/src/accounting/Log.cs new file mode 100644 index 0000000..e18af0e --- /dev/null +++ b/src/accounting/Log.cs @@ -0,0 +1,16 @@ +// Copyright The OpenTelemetry Authors +// SPDX-License-Identifier: Apache-2.0 + +using Microsoft.Extensions.Logging; +using Oteldemo; + +namespace Accounting +{ + internal static partial class Log + { + [LoggerMessage( + Level = LogLevel.Information, + Message = "Order details: {@OrderResult}.")] + public static partial void OrderReceivedMessage(ILogger logger, OrderResult orderResult); + } +} -- cgit v1.2.3