Vendr is now Umbraco Commerce

Vendr is now part of Umbraco HQ and is being replaced by Umbraco Commerce. Click here to jump to the Umbraco Commerce documentation.

ILogger<T>

API reference for ILogger<T> in Vendr, the eCommerce solution for Umbraco

ILogger<T>

Defines the logging service.

public interface ILogger<T>

Namespace

Methods

Debug (1 of 2)

Logs a debugging message.

public void Debug(string message)

Parameters

Parameter Description
message
A message.

Debug (2 of 2)

Logs a debug message.

public void Debug(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

Error (1 of 5)

Logs an error message with an exception.

public void Error(Exception exception, string message)

Parameters

Parameter Description
exception
An exception.
message
A message.

Error (2 of 5)

Logs an error exception.

public void Error(Exception exception)

Parameters

Parameter Description
exception
An exception.

Remarks

The message string is unspecified and is implementation-specific.


Error (3 of 5)

Logs an error message.

public void Error(string message)

Parameters

Parameter Description
message
A message.

Error (4 of 5)

Logs an error message with an exception.

public void Error(Exception exception, string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Error (5 of 5)

Logs an error message.

public void Error(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

Fatal (1 of 5)

Logs a fatal message with an exception.

public void Fatal(Exception exception, string message)

Parameters

Parameter Description
exception
An exception.
message
A message.

Fatal (2 of 5)

Logs a fatal exception.

public void Fatal(Exception exception)

Parameters

Parameter Description
exception
An exception.

Remarks

The message string is unspecified and is implementation-specific.


Fatal (3 of 5)

Logs a fatal message.

public void Fatal(string message)

Parameters

Parameter Description
message
A message.

Fatal (4 of 5)

Logs a fatal message with an exception.

public void Fatal(Exception exception, string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Fatal (5 of 5)

Logs a fatal message.

public void Fatal(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

Info (1 of 2)

Logs an information message.

public void Info(string message)

Parameters

Parameter Description
message
A message.

Info (2 of 2)

Logs a info message.

public void Info(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

IsEnabled

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

public bool IsEnabled(LogLevel level)

Parameters

Parameter Description
level
The level.

Verbose (1 of 2)

Logs a verbose message.

public void Verbose(string message)

Parameters

Parameter Description
message
A message.

Verbose (2 of 2)

Logs a verbose message.

public void Verbose(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

Warn (1 of 4)

Logs a warning message.

public void Warn(string message)

Parameters

Parameter Description
message
A message.

Warn (2 of 4)

Logs a warning message.

public void Warn(string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
messageTemplate
A message template.
propertyValues
Property values.

Warn (3 of 4)

Logs a warning message with an exception.

public void Warn(Exception exception, string message)

Parameters

Parameter Description
exception
An exception.
message
A message.

Warn (4 of 4)

Logs a warning message with an exception.

public void Warn(Exception exception, string messageTemplate, params object[] propertyValues)

Parameters

Parameter Description
exception
An exception.
messageTemplate
A message template.
propertyValues
Property values.

Remarks

Message templates in logging methods follow the Message Templates specification available at https://messagetemplates.org/ in order to support structured logging.

Implementations must ensure that they support these templates. Note that the specification includes support for traditional C# numeric placeholders.

For instance, "Processed in ms."

Edit this page on GitHub

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