Class MemoryProcessLogger
Inheritance
↳ object
↳ MemoryProcessLogger
Implements
IProcessLogProvider
Inherited Members
Equals(object)
Equals(object, object)
GetHashCode()
GetType()
MemberwiseClone()
ReferenceEquals(object, object)
ToString()
Namespace: OptimaJet.Workflow.Core.Logging
Assembly: OptimaJet.Workflow.Core.dll
Syntaxpublic class MemoryProcessLogger : IProcessLogProvider
Constructors
MemoryProcessLogger(int, int)
Keep a fixed number of new logs by deleting old ones for fixed number of process in memory.
Declarationpublic MemoryProcessLogger(int logSize, int capacity)
Type | Name | Description |
---|---|---|
int | logSize | Maximum number of log records in one process. |
int | capacity | Maximum number of logged processes. |
Properties
LogSize
Maximum number of log records in one process.
Declarationpublic int LogSize { get; }
Type | Description |
---|---|
int |
Capacity
Maximum number of logged processes.
Declarationpublic int Capacity { get; }
Type | Description |
---|---|
int |
ProcessLogs
Declarationpublic ConcurrentDictionary<Guid, FixedSizedQueue<ProcessLogEntry>> ProcessLogs { get; }
Type | Description |
---|---|
ConcurrentDictionary<Guid, FixedSizedQueue<ProcessLogEntry>> |
Methods
Write(ProcessLogEntry)
Declarationpublic void Write(ProcessLogEntry entry)
Type | Name | Description |
---|---|---|
ProcessLogEntry | entry |
ReadAllAsync(Guid)
Declarationpublic Task<IEnumerable<ProcessLogEntry>> ReadAllAsync(Guid processId)
Type | Name | Description |
---|---|---|
Guid | processId |
Type | Description |
---|---|
Task<IEnumerable<ProcessLogEntry>> |
ReadLastAsync(Guid, DateTime)
Declarationpublic Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, DateTime time)
Type | Name | Description |
---|---|---|
Guid | processId | |
DateTime | time |
Type | Description |
---|---|
Task<IEnumerable<ProcessLogEntry>> |
ReadLastAsync(Guid, int)
Declarationpublic Task<IEnumerable<ProcessLogEntry>> ReadLastAsync(Guid processId, int count)
Type | Name | Description |
---|---|---|
Guid | processId | |
int | count |
Type | Description |
---|---|
Task<IEnumerable<ProcessLogEntry>> |
ReadEarlyAsync(Guid, DateTime, int)
Declarationpublic Task<IEnumerable<ProcessLogEntry>> ReadEarlyAsync(Guid processId, DateTime time, int count)
Type | Name | Description |
---|---|---|
Guid | processId | |
DateTime | time | |
int | count |
Type | Description |
---|---|
Task<IEnumerable<ProcessLogEntry>> |