Class LogExtensions

Namespace
Pixie
Assembly
Pixie.dll

Convenience helpers for creating and logging entries with a specific severity.

public static class LogExtensions
Inheritance
LogExtensions
Inherited Members

Methods

Diagnostic(ILog, Severity, Inline, Inline, Inline, Block)

Logs a compiler-style diagnostic entry.

public static void Diagnostic(this ILog log, Severity severity, Inline origin, Inline title, Inline message, Block details = null)

Parameters

log ILog

The log to write to.

severity Severity

The diagnostic severity.

origin Inline

The diagnostic origin, such as a source location.

title Inline

The diagnostic title.

message Inline

The diagnostic message.

details Block

Optional additional diagnostic details.

Error(ILog, params Block[])

Logs an error entry.

public static void Error(this ILog log, params Block[] contents)

Parameters

log ILog

The log to write to.

contents Block[]

The entry contents.

Error(ILog, string, params Block[])

Logs an error entry with a title.

public static void Error(this ILog log, string title, params Block[] contents)

Parameters

log ILog

The log to write to.

title string

The entry title.

contents Block[]

The entry contents.

ErrorDiagnostic(ILog, Inline, Inline, Inline, Block)

Logs an error as a compiler-style diagnostic entry.

public static void ErrorDiagnostic(this ILog log, Inline origin, Inline title, Inline message, Block details = null)

Parameters

log ILog

The log to write to.

origin Inline

The diagnostic origin, such as a source location.

title Inline

The diagnostic title.

message Inline

The diagnostic message.

details Block

Optional additional diagnostic details.

Info(ILog, params Block[])

Logs an informational entry.

public static void Info(this ILog log, params Block[] contents)

Parameters

log ILog

The log to write to.

contents Block[]

The entry contents.

Info(ILog, string, params Block[])

Logs an informational entry with a title.

public static void Info(this ILog log, string title, params Block[] contents)

Parameters

log ILog

The log to write to.

title string

The entry title.

contents Block[]

The entry contents.

Message(ILog, params Block[])

Logs a plain message entry.

public static void Message(this ILog log, params Block[] contents)

Parameters

log ILog

The log to write to.

contents Block[]

The entry contents.

Message(ILog, string, params Block[])

Logs a plain message entry with a title.

public static void Message(this ILog log, string title, params Block[] contents)

Parameters

log ILog

The log to write to.

title string

The entry title.

contents Block[]

The entry contents.

Warning(ILog, params Block[])

Logs a warning entry.

public static void Warning(this ILog log, params Block[] contents)

Parameters

log ILog

The log to write to.

contents Block[]

The entry contents.

Warning(ILog, string, params Block[])

Logs a warning entry with a title.

public static void Warning(this ILog log, string title, params Block[] contents)

Parameters

log ILog

The log to write to.

title string

The entry title.

contents Block[]

The entry contents.

WarningDiagnostic(ILog, Inline, Inline, Inline, Block)

Logs a warning as a compiler-style diagnostic entry.

public static void WarningDiagnostic(this ILog log, Inline origin, Inline title, Inline message, Block details = null)

Parameters

log ILog

The log to write to.

origin Inline

The diagnostic origin, such as a source location.

title Inline

The diagnostic title.

message Inline

The diagnostic message.

details Block

Optional additional diagnostic details.