Table of Contents

Class FullLoggerExtensions

Namespace
Splat
Assembly
Splat.dll

Provides extension methods to the IFullLogger interface.

public static class FullLoggerExtensions
Inheritance
FullLoggerExtensions

Methods

Debug(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Debug is enabled.

public static void Debug(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Debug logging is enabled.

DebugException(IFullLogger, Func<string>, Exception)

Sends the value provided by the provided delegate, only if Debug is enabled.

public static void DebugException(this IFullLogger logger, Func<string> function, Exception exception)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Debug logging is enabled.

exception Exception

A exception to log about.

Debug<T>(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Debug is enabled.

public static void Debug<T>(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Debug logging is enabled.

Type Parameters

T

The type of object we are logging about.

Error(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Error is enabled.

public static void Error(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Error logging is enabled.

ErrorException(IFullLogger, Func<string>, Exception)

Sends the value provided by the provided delegate, only if Error is enabled.

public static void ErrorException(this IFullLogger logger, Func<string> function, Exception exception)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Error logging is enabled.

exception Exception

A exception to log about.

Error<T>(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Error is enabled.

public static void Error<T>(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Error logging is enabled.

Type Parameters

T

The type of object we are logging about.

Fatal(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Fatal is enabled.

public static void Fatal(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Fatal logging is enabled.

FatalException(IFullLogger, Func<string>, Exception)

Sends the value provided by the provided delegate, only if Fatal is enabled.

public static void FatalException(this IFullLogger logger, Func<string> function, Exception exception)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Fatal logging is enabled.

exception Exception

A exception to log about.

Fatal<T>(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Fatal is enabled.

public static void Fatal<T>(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Fatal logging is enabled.

Type Parameters

T

The type of object we are logging about.

Info(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Debug is enabled.

public static void Info(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Debug logging is enabled.

InfoException(IFullLogger, Func<string>, Exception)

Sends the value provided by the provided delegate, only if Info is enabled.

public static void InfoException(this IFullLogger logger, Func<string> function, Exception exception)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Info logging is enabled.

exception Exception

A exception to log about.

Info<T>(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Debug is enabled.

public static void Info<T>(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Debug logging is enabled.

Type Parameters

T

The type of object we are logging about.

Warn(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Warn is enabled.

public static void Warn(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Warn logging is enabled.

WarnException(IFullLogger, Func<string>, Exception)

Sends the value provided by the provided delegate, only if Warn is enabled.

public static void WarnException(this IFullLogger logger, Func<string> function, Exception exception)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Warn logging is enabled.

exception Exception

A exception to log about.

Warn<T>(IFullLogger, Func<string>)

Sends the value provided by the provided delegate, only if Warn is enabled.

public static void Warn<T>(this IFullLogger logger, Func<string> function)

Parameters

logger IFullLogger

The logger to use.

function Func<string>

The function to evaluate if Warn logging is enabled.

Type Parameters

T

The type of object we are logging about.