Table of Contents

Class MissingLoggingHandler

Namespace
MonkeyLoader.Logging
Assembly
MonkeyLoader.dll

Implements a LoggingHandler that can never log anything.
Compares equal to null.

public sealed class MissingLoggingHandler : LoggingHandler
Inheritance
MissingLoggingHandler
Inherited Members

Properties

Connected

Gets whether this logging handler has somewhere to log.

public override bool Connected { get; }

Property Value

bool

Instance

Gets the instance of the MissingLoggingHandler.

public static MissingLoggingHandler Instance { get; }

Property Value

MissingLoggingHandler

Methods

Debug(Func<object>)

Logs events considered to be useful during debugging when more granular information is needed.

public override void Debug(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.

Error(Func<object>)

Logs that one or more functionalities are not working, preventing some from working correctly.

public override void Error(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.

Fatal(Func<object>)

Logs that one or more key functionalities, or the whole system isn't working.

public override void Fatal(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.

Flush()

Attempts to flush any not yet fully logged messages.

public override void Flush()

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

Info(Func<object>)

Logs that something happened, which is purely informative and can be ignored during normal use.

public override void Info(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.

Trace(Func<object>)

Logs step by step execution of code that can be ignored during standard operation, but may be useful during extended debugging sessions.

public override void Trace(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.

Warn(Func<object>)

Logs that unexpected behavior happened, but work is continuing and the key functionalities are operating as expected.

public override void Warn(Func<object> messageProducer)

Parameters

messageProducer Func<object>

The producer to log if possible.