Class MemoryProcessLogger
OptimaJet.Workflow.Core.Logging.MemoryProcessLogger
Namespace: OptimaJet.Workflow.Core.Logging
public class MemoryProcessLogger : IProcessLogProviderInheritance
- System.Object
Implemented Interfaces
Constructors
public MemoryProcessLogger(int logSize, int capacity) #Keep a fixed number of new logs by deleting old ones for fixed number of process in memory.
Parameters
Name
Type
Description
logSizeInt32Maximum number of log records in one process.
capacityInt32Maximum number of logged processes.
Properties
Name
Type
LogSize #Int32Maximum number of log records in one process.
Capacity #Int32Maximum number of logged processes.
ProcessLogs #ConcurrentDictionary<ProcessLogEntry>Methods
public void Write(ProcessLogEntry entry) #Parameters
Name
Type
Description
entryProcessLogEntrypublic Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId) #Get all records for specific process.
Parameters
Name
Type
Description
Returns
Type
Description
Task<ProcessLogEntry>public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time) #Get last records starting the specified time
Parameters
Returns
Type
Description
Task<ProcessLogEntry>public Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count) #Get last records in certain amount
Parameters
Returns
Type
Description
Task<ProcessLogEntry>public Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count) #Get earle records starting the specified time in certain amount
Parameters
Returns
Type
Description
Task<ProcessLogEntry>