Class LogScrubber
Log scrubbing hosted service.
Namespace: Umbraco.Cms.Infrastructure.HostedServices
Assembly: cs.temp.dll.dll
Syntax
public class LogScrubber : RecurringHostedServiceBase, IDisposable
Remarks
Will only run on non-replica servers.
Constructors
LogScrubber(IMainDom, IServerRoleAccessor, IAuditService, IOptions<LoggingSettings>, IScopeProvider, ILogger<LogScrubber>, IProfilingLogger)
Initializes a new instance of the Log
Declaration
public LogScrubber(IMainDom mainDom, IServerRoleAccessor serverRegistrar, IAuditService auditService, IOptions<LoggingSettings> settings, IScopeProvider 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<Logging |
settings | The configuration for logging settings. |
IScope |
scopeProvider | Provides scopes for database operations. |
ILogger<Log |
logger | The typed logger. |
IProfiling |
profilingLogger | The profiling logger. |
Methods
PerformExecuteAsync(Object)
Declaration
public override Task PerformExecuteAsync(object state)
Parameters
Type | Name | Description |
---|---|---|
System. |
state |
Returns
Type | Description |
---|---|
Task |