Table of Contents

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

SandboxId string

The sandbox id.

Time DateTimeOffset?

When the line was produced.

Level string

Log level, for example INFO.

Target string

The emitting target.

Message string

The message.

Source string

The source, for example gateway or sandbox.

Fields IReadOnlyDictionary<string, string>

Structured fields.

Properties

Fields

Structured fields.

public IReadOnlyDictionary<string, string> Fields { get; init; }

Property Value

IReadOnlyDictionary<string, string>

Level

Log level, for example INFO.

public string Level { get; init; }

Property Value

string

Message

The message.

public string Message { get; init; }

Property Value

string

SandboxId

The sandbox id.

public string SandboxId { get; init; }

Property Value

string

Source

The source, for example gateway or sandbox.

public string Source { get; init; }

Property Value

string

Target

The emitting target.

public string Target { get; init; }

Property Value

string

Time

When the line was produced.

public DateTimeOffset? Time { get; init; }

Property Value

DateTimeOffset?