MBrace.Runtime


SystemLogEntry

Namespace: MBrace.Runtime

Struct that specifies a single system log entry

Record Fields

Record FieldDescription
DateTime
Signature: DateTimeOffset

Date of log entry

LogLevel
Signature: LogLevel

LogLevel of log entry

Message
Signature: string

Logged message of entry

SourceId
Signature: string

Originating worker identifier

Constructors

ConstructorDescription
new(logLevel, message)
Signature: (logLevel:LogLevel * message:string) -> SystemLogEntry

Creates a new log entry with datetime set to current machine date.

CompiledName: .ctor

new(...)
Signature: (logLevel:LogLevel * message:string * dateTime:DateTimeOffset * sourceId:string) -> SystemLogEntry

Creates a new log entry with supplied parameters.

CompiledName: .ctor

Instance members

Instance memberDescription
IsSourceSpecified
Signature: bool

Worker source identifier is specified in the entry.

CompiledName: get_IsSourceSpecified

Static members

Static memberDescription
Format(entry, showDate, showSourceId)
Signature: (entry:SystemLogEntry * showDate:bool option * showSourceId:bool option) -> string

Displays log entry as string with supplied parameters.

WithWorkerId(workerId, entry)
Signature: (workerId:string * entry:SystemLogEntry) -> SystemLogEntry

Creates a new log entry with updated worker source identifier.

Fork me on GitHub