microsoft/teams.net

Public

mirrored from https://github.com/microsoft/teams.netAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
samples/repro-da

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

core/src/Microsoft.Teams.Apps.BotBuilder/Log.cs

28lines · modecode

1// Copyright (c) Microsoft Corporation.
2// Licensed under the MIT License.
3
4using Microsoft.Extensions.Logging;
5
6namespace Microsoft.Teams.Apps.BotBuilder;
7
8/// <summary>
9/// High-performance logging methods generated via the <see cref="LoggerMessageAttribute"/> source generator.
10/// </summary>
11internal static partial class Log
12{
13 // ── TeamsBotAdapter ─────────────────────────────────────────────────
14
15 [LoggerMessage(EventId = 110, Level = LogLevel.Debug, Message = "Resp from SendActivitiesAsync: {RespId}")]
16 public static partial void SendActivitiesResponse(this ILogger logger, string? respId);
17
18 [LoggerMessage(EventId = 111, Level = LogLevel.Trace, Message = "Sending Invoke Response: \n {InvokeResponse} with status: {Status} \n")]
19 public static partial void SendingInvokeResponse(this ILogger logger, string invokeResponse, int status);
20
21 [LoggerMessage(EventId = 112, Level = LogLevel.Warning, Message = "HTTP response is null or has started. Cannot write invoke response. ResponseStarted: {ResponseStarted}")]
22 public static partial void CannotWriteInvokeResponse(this ILogger logger, bool? responseStarted);
23
24 // ── TeamsBotFrameworkHttpAdapter ─────────────────────────────────────
25
26 [LoggerMessage(EventId = 120, Level = LogLevel.Error, Message = "Error processing activity: Id={Id}. Delegating to OnTurnError.")]
27 public static partial void ActivityProcessingErrorDelegating(this ILogger logger, Exception ex, string? id);
28}