Struct LogEntry

Namespace
Pixie
Assembly
Pixie.dll

Describes a log entry: a self-contained nugget of information.

public struct LogEntry
Inherited Members

Constructors

LogEntry(Severity, Block)

Creates a log entry with the given severity and contents.

public LogEntry(Severity severity, Block contents)

Parameters

severity Severity

The log entry's severity.

contents Block

The log entry's contents.

LogEntry(Severity, params Block[])

Creates a log entry with the given severity and contents.

public LogEntry(Severity severity, params Block[] contents)

Parameters

severity Severity

The log entry's severity.

contents Block[]

The log entry's contents.

LogEntry(Severity, string, params Block[])

Creates a log entry with the given severity, title and contents.

public LogEntry(Severity severity, string title, params Block[] contents)

Parameters

severity Severity

The log entry's severity.

title string

The log entry's title.

contents Block[]

The log entry's contents.

Properties

Contents

Gets the markup nodes that make up this log entry's contents.

public readonly Block Contents { get; }

Property Value

Block

The log entry's contents.

Severity

Gets the severity for this log entry.

public readonly Severity Severity { get; }

Property Value

Severity

The log entry's severity.

Methods

Map(Func<Block, Block>)

Creates a new log entry by applying a mapping to this log entry's contents.

public LogEntry Map(Func<Block, Block> mapping)

Parameters

mapping Func<Block, Block>

The mapping to apply.

Returns

LogEntry

A new log entry.