microsoft/teams.net
Publicmirrored from https://github.com/microsoft/teams.netAvailable
core/src/Microsoft.Teams.Apps.BotBuilder/Log.cs
28lines · modecode
| 1 | // Copyright (c) Microsoft Corporation. |
| 2 | // Licensed under the MIT License. |
| 3 | |
| 4 | using Microsoft.Extensions.Logging; |
| 5 | |
| 6 | namespace Microsoft.Teams.Apps.BotBuilder; |
| 7 | |
| 8 | /// <summary> |
| 9 | /// High-performance logging methods generated via the <see cref="LoggerMessageAttribute"/> source generator. |
| 10 | /// </summary> |
| 11 | internal 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 | } |