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
LogEntry(Severity, params Block[])
Creates a log entry with the given severity and contents.
public LogEntry(Severity severity, params Block[] contents)
Parameters
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
severitySeverityThe log entry's severity.
titlestringThe log entry's title.
contentsBlock[]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
Returns
- LogEntry
A new log entry.