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.

ILogger

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

ILogger

Defines the logging service.

public interface ILogger

Namespace

Methods

Debug (1 of 2)

Logs a debugging message.

public void Debug(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Debug (2 of 2)

Logs a debug message.

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

Parameters

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

Error (1 of 5)

Logs an error message with an exception.

public void Error(Type reporting, Exception exception, string message)

Parameters

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

Error (2 of 5)

Logs an error exception.

public void Error(Type reporting, Exception exception)

Parameters

Parameter Description
reporting
The reporting type.
exception
An exception.

Remarks

The message string is unspecified and is implementation-specific.


Error (3 of 5)

Logs an error message.

public void Error(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Error (4 of 5)

Logs an error message with an exception.

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

Parameters

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

Error (5 of 5)

Logs an error message.

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

Parameters

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

Fatal (1 of 5)

Logs a fatal message with an exception.

public void Fatal(Type reporting, Exception exception, string message)

Parameters

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

Fatal (2 of 5)

Logs a fatal exception.

public void Fatal(Type reporting, Exception exception)

Parameters

Parameter Description
reporting
The reporting type.
exception
An exception.

Remarks

The message string is unspecified and is implementation-specific.


Fatal (3 of 5)

Logs a fatal message.

public void Fatal(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Fatal (4 of 5)

Logs a fatal message with an exception.

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

Parameters

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

Fatal (5 of 5)

Logs a fatal message.

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

Parameters

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

Info (1 of 2)

Logs an information message.

public void Info(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Info (2 of 2)

Logs a info message.

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

Parameters

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

IsEnabled

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

public bool IsEnabled(Type reporting, LogLevel level)

Parameters

Parameter Description
reporting
The reporting type.
level
The level.

Verbose (1 of 2)

Logs a verbose message.

public void Verbose(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Verbose (2 of 2)

Logs a verbose message.

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

Parameters

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

Warn (1 of 4)

Logs a warning message.

public void Warn(Type reporting, string message)

Parameters

Parameter Description
reporting
The reporting type.
message
A message.

Warn (2 of 4)

Logs a warning message.

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

Parameters

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

Warn (3 of 4)

Logs a warning message with an exception.

public void Warn(Type reporting, Exception exception, string message)

Parameters

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

Warn (4 of 4)

Logs a warning message with an exception.

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

Parameters

Parameter Description
reporting
The reporting type.
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.