Class LogLine
- Namespace
- OpenShell
- Assembly
- OpenShell.Sdk.dll
A log line from the gateway or the sandbox supervisor.
public sealed record LogLine : IEquatable<LogLine>
- Inheritance
-
LogLine
- Implements
- Inherited Members
Constructors
LogLine(string, DateTimeOffset?, string, string, string, string, IReadOnlyDictionary<string, string>)
A log line from the gateway or the sandbox supervisor.
public LogLine(string SandboxId, DateTimeOffset? Time, string Level, string Target, string Message, string Source, IReadOnlyDictionary<string, string> Fields)
Parameters
SandboxIdstringThe sandbox id.
TimeDateTimeOffset?When the line was produced.
LevelstringLog level, for example
INFO.TargetstringThe emitting target.
MessagestringThe message.
SourcestringThe source, for example
gatewayorsandbox.FieldsIReadOnlyDictionary<string, string>Structured fields.
Properties
Fields
Structured fields.
public IReadOnlyDictionary<string, string> Fields { get; init; }
Property Value
Level
Log level, for example INFO.
public string Level { get; init; }
Property Value
Message
The message.
public string Message { get; init; }
Property Value
SandboxId
The sandbox id.
public string SandboxId { get; init; }
Property Value
Source
The source, for example gateway or sandbox.
public string Source { get; init; }
Property Value
Target
The emitting target.
public string Target { get; init; }
Property Value
Time
When the line was produced.
public DateTimeOffset? Time { get; init; }