Class FullLoggerExtensions
- Namespace
- Splat
- Assembly
- Splat.dll
Provides extension methods to the IFull
- Inheritance
-
Full
Logger Extensions
Methods
Debug(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Debug is enabled.
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
ExceptionA exception to log about.
Debug<T>(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Debug is enabled.
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.
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
ExceptionA exception to log about.
Error<T>(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Error is enabled.
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.
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
ExceptionA exception to log about.
Fatal<T>(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Fatal is enabled.
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.
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
ExceptionA exception to log about.
Info<T>(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Debug is enabled.
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.
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
ExceptionA exception to log about.
Warn<T>(IFullLogger, Func<string>)
Sends the value provided by the provided delegate, only if Warn is enabled.
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.