Table of Contents

Class ResoniteLoggingHandler

Namespace
MonkeyLoader.Resonite
Assembly
MonkeyLoader.Resonite.Integration.dll

Maps the LoggingHandler functions to Resonite's Elements.Core.UniLog.

public sealed class ResoniteLoggingHandler : LoggingHandler
Inheritance
ResoniteLoggingHandler
Inherited Members

Properties

Connected

Gets whether this logging handler has somewhere to log.

public override bool Connected { get; }

Property Value

bool

Instance

Gets a cached instance of the ResoniteLoggingHandler.

public static ResoniteLoggingHandler Instance { get; }

Property Value

ResoniteLoggingHandler

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()

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.