Previous Docs Version

The documentation you are viewing is for a previous version of the Vendr product. Click here to jump to the current stable version.

LoggerExtensions

API reference for LoggerExtensions in Vendr, the eCommerce solution for Umbraco v8+

LoggerExtensions

Provides extension methods for the ILogger interface.

public static class LoggerExtensions

Namespace

Methods

Debug<T> (1 of 2)

Logs a debugging message.

public static void Debug<T>(this ILogger logger, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.

Debug<T> (2 of 2)

Logs a debugging message.

public static void Debug<T>(this ILogger logger, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type
logger
The logger.
messageTemplate
A message template.
propertyValues
Property values.

Error<T> (1 of 5)

Logs an error message with an exception.

public static void Error<T>(this ILogger logger, Exception exception, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.
exception
An exception.

Error<T> (2 of 5)

Logs an error message with an exception.

public static void Error<T>(this ILogger logger, Exception exception, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Error<T> (3 of 5)

Logs an error exception.

public static void Error<T>(this ILogger logger, Exception exception)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.

Error<T> (4 of 5)

Logs an error message.

public static void Error<T>(this ILogger logger, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.

Error<T> (5 of 5)

Logs an error message.

public static void Error<T>(this ILogger logger, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
messageTemplate
A message template.
propertyValues
Property values.

Fatal<T> (1 of 2)

Logs a fatal message.

public static void Fatal<T>(this ILogger logger, Exception exception, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.
message
A message.

Fatal<T> (2 of 2)

Logs a fatal message.

public static void Fatal<T>(this ILogger logger, Exception exception, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Info<T> (1 of 2)

Logs an information message.

public static void Info<T>(this ILogger logger, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.

Info<T> (2 of 2)

Logs a information message.

public static void Info<T>(this ILogger logger, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type
logger
The logger.
messageTemplate
A message template.
propertyValues
Property values.

IsEnabled<T>

Determines if logging is enabled at a specified level, for a reporting type.

public static bool IsEnabled<T>(this ILogger logger, LogLevel level)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
level
The level.

Verbose<T> (1 of 2)

Logs a verbose message.

public static void Verbose<T>(this ILogger logger, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.

Verbose<T> (2 of 2)

Logs a verbose message.

public static void Verbose<T>(this ILogger logger, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
messageTemplate
A message template.
propertyValues
Property values.

Warn<T> (1 of 4)

Logs a warning message.

public static void Warn<T>(this ILogger logger, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
message
A message.

Warn<T> (2 of 4)

Logs a warning message.

public static void Warn<T>(this ILogger logger, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
messageTemplate
A message template.
propertyValues
Property values.

Warn<T> (3 of 4)

Logs a warning message with an exception.

public static void Warn<T>(this ILogger logger, Exception exception, string message)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.
message
A message.

Warn<T> (4 of 4)

Logs a warning message with an exception.

public static void Warn<T>(this ILogger logger, Exception exception, string messageTemplate, 
    params object[] propertyValues)

Parameters

Parameter Description
T
The reporting type.
logger
The logger.
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Edit this page on GitHub

Site + logo design © 2024 Outfield Digital Ltd. Content contributions licensed under MIT.
Vendr® is a Registered Trademark of Outfield Digital Ltd.