-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathAtcCodingRulesUpdaterLoggerMessages.cs
50 lines (44 loc) · 1.69 KB
/
AtcCodingRulesUpdaterLoggerMessages.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
39
40
41
42
43
44
45
46
47
48
49
50
namespace Atc.Rest.ApiGenerator.CodingRules;
/// <summary>
/// AtcCodingRulesUpdater LoggerMessages.
/// </summary>
[SuppressMessage("Design", "MA0048:File name must match type name", Justification = "OK - By Design")]
public sealed partial class AtcCodingRulesUpdater
{
private readonly ILogger<AtcCodingRulesUpdater> logger;
[LoggerMessage(
EventId = LoggingEventIdConstants.WorkingOnCodingRules,
Level = LogLevel.Trace,
Message = "{prefix}Working on Coding Rules")]
private partial void LogWorkingOnCodingRules(
string prefix);
[LoggerMessage(
EventId = LoggingEventIdConstants.WorkingOnEditorConfigFiles,
Level = LogLevel.Trace,
Message = "{prefix}Working on EditorConfig files")]
private partial void LogWorkingOnEditorConfigFiles(
string prefix);
[LoggerMessage(
EventId = LoggingEventIdConstants.WorkingOnDirectoryBuildPropsFiles,
Level = LogLevel.Trace,
Message = "{prefix}Working on Directory.Build.props files")]
private partial void LogWorkingOnDirectoryBuildPropsFiles(
string prefix);
[LoggerMessage(
EventId = LoggingEventIdConstants.FileCreated,
Level = LogLevel.Debug,
Message = "{prefix}{area}: {fileName} created")]
private partial void LogFileCreated(
string prefix,
string area,
string fileName);
[LoggerMessage(
EventId = LoggingEventIdConstants.FileSkipped,
Level = LogLevel.Error,
Message = "{prefix}{area}: {fileName} skipped: '{errorMessage}'")]
private partial void LogFileSkipped(
string prefix,
string area,
string fileName,
string errorMessage);
}