Class LogScrubberJob
Log scrubbing hosted service.
Inheritance
System.Object
Namespace: Umbraco.Cms.Infrastructure.BackgroundJobs.Jobs
Assembly: Umbraco.Infrastructure.dll
Syntax
public class LogScrubberJob : IRecurringBackgroundJob
Remarks
Will only run on non-replica servers.
Constructors
View SourceLogScrubberJob(IAuditService, IOptionsMonitor<LoggingSettings>, ICoreScopeProvider, ILogger<LogScrubberJob>, IProfilingLogger)
Initializes a new instance of the Log
Declaration
public LogScrubberJob(IAuditService auditService, IOptionsMonitor<LoggingSettings> settings, ICoreScopeProvider scopeProvider, ILogger<LogScrubberJob> logger, IProfilingLogger profilingLogger)
Parameters
Type | Name | Description |
---|---|---|
IAudit |
auditService | Service for handling audit operations. |
IOptions |
settings | The configuration for logging settings. |
ICore |
scopeProvider | Provides scopes for database operations. |
ILogger<Log |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
Properties
View SourcePeriod
Declaration
public TimeSpan Period { get; }
Property Value
Type | Description |
---|---|
Time |
Methods
View SourceRunJobAsync()
Declaration
public Task RunJobAsync()
Returns
Type | Description |
---|---|
Task |
Events
View SourcePeriodChanged
Declaration
public event EventHandler PeriodChanged
Event Type
Type | Description |
---|---|
Event |