-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLoggerExtensions.cs
38 lines (35 loc) · 1.05 KB
/
LoggerExtensions.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
* LoggerExtensions.cs
* Created: 2024-07-05T11:47:17-04:00
* Modified: 2024-07-05T11:47:17-04:00
* Author: David G. Moore, Jr. <[email protected]>
* Copyright: © 2022 - 2024 David G. Moore, Jr., All Rights Reserved
* License: MIT (https://opensource.org/licenses/MIT)
*/
namespace Dgmjr.AspNetCore.ReverseProxy;
public static partial class LoggerExtensions
{
[LoggerMessage(
EventId = 1000,
Level = LogLevel.Information,
Message = """"
Rewrote content from
{OriginalContent} to {RewrittenContent}
""""
)]
public static partial void RewroteContent(
this ILogger logger,
string originalContent,
string rewrittenContent
);
[LoggerMessage(
EventId = 1001,
Level = LogLevel.Information,
Message = "Redirected request from {OriginalUrl} to {NewUrl}"
)]
public static partial void RedirectedRequest(
this ILogger logger,
string originalUrl,
string newUrl
);
}