-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathLog.Maintenance.cs
More file actions
40 lines (35 loc) · 1.54 KB
/
Log.Maintenance.cs
File metadata and controls
40 lines (35 loc) · 1.54 KB
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
namespace BookStore.ApiService.Infrastructure.Logging;
/// <summary>
/// High-performance logging for maintenance operations.
/// </summary>
public static partial class Log
{
public static partial class Maintenance
{
[LoggerMessage(
EventId = 5001,
Level = LogLevel.Information,
Message = "Starting unverified account cleanup. Expiration: {ExpirationHours} hours.")]
public static partial void AccountCleanupStarted(ILogger logger, int expirationHours);
[LoggerMessage(
EventId = 5002,
Level = LogLevel.Information,
Message = "Unverified account cleanup completed. Deleted {DeletedCount} accounts.")]
public static partial void AccountCleanupCompleted(ILogger logger, int deletedCount);
[LoggerMessage(
EventId = 5003,
Level = LogLevel.Error,
Message = "Error occurred during unverified account cleanup.")]
public static partial void AccountCleanupFailed(ILogger logger, Exception ex);
[LoggerMessage(
EventId = 5004,
Level = LogLevel.Information,
Message = "Triggering initial unverified account cleanup job.")]
public static partial void InitialCleanupTriggered(ILogger logger);
[LoggerMessage(
EventId = 5005,
Level = LogLevel.Error,
Message = "Failed to trigger initial unverified account cleanup job.")]
public static partial void InitialCleanupTriggerFailed(ILogger logger, Exception ex);
}
}