Class LogScrubber
Log scrubbing hosted service.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: Umbraco.Infrastructure.dll
Syntax
public class LogScrubber : RecurringHostedServiceBase
Remarks
Will only run on non-replica servers.
Constructors
View SourceLogScrubber(IMainDom, IServerRoleAccessor, IAuditService, IOptionsMonitor<LoggingSettings>, ICoreScopeProvider, ILogger<LogScrubber>, IProfilingLogger)
Initializes a new instance of the LogScrubber class.
Declaration
public LogScrubber(IMainDom mainDom, IServerRoleAccessor serverRegistrar, IAuditService auditService, IOptionsMonitor<LoggingSettings> settings, ICoreScopeProvider scopeProvider, ILogger<LogScrubber> logger, IProfilingLogger profilingLogger)
Parameters
Type | Name | Description |
---|---|---|
IMainDom | mainDom | Representation of the main application domain. |
IServerRoleAccessor | serverRegistrar | Provider of server registrations to the distributed cache. |
IAuditService | auditService | Service for handling audit operations. |
IOptionsMonitor<LoggingSettings> | settings | The configuration for logging settings. |
ICoreScopeProvider | scopeProvider | Provides scopes for database operations. |
ILogger<LogScrubber> | logger | The typed logger. |
IProfilingLogger | profilingLogger | The profiling logger. |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System.Object | state |
Returns
Type | Description |
---|---|
Task |