Table of Contents

Class DebuggerLoggerProvider

Namespace
Icy.Diagnostics.Logging
Assembly
IcyUI.dll

An ILoggerProvider that writes to an attached debugger's output window, such as Visual Studio's Output pane. IcyUI.MonoGame uses it by default.

public sealed class DebuggerLoggerProvider : ILoggerProvider, IDisposable
Inheritance
DebuggerLoggerProvider
Implements
Inherited Members
Extension Methods

Remarks

Messages are written with Log(int, string, string) only while IsLogging() returns true. Without a debugger every logger reports itself disabled, so logging costs one check.

Unlike Debug.WriteLine, which the compiler removes from Release builds of the calling assembly, this works from IcyUI's Release package.

Methods

CreateLogger(string)

Creates a new ILogger instance.

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

The category name for messages produced by the logger.

Returns

ILogger

The instance of ILogger that was created.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()