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 Log
Declaration
public LogScrubber(IMainDom mainDom, IServerRoleAccessor serverRegistrar, IAuditService auditService, IOptionsMonitor<LoggingSettings> settings, ICoreScopeProvider scopeProvider, ILogger<LogScrubber> logger, IProfilingLogger profilingLogger)
Parameters
Type | Name | Description |
---|---|---|
IMain |
mainDom | Representation of the main application domain. |
IServer |
serverRegistrar | Provider of server registrations to the distributed cache. |
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. |
Methods
View SourcePerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System. |
state |
Returns
Type | Description |
---|---|
Task |