Language

ContextLogger Class

Definition

Provides backward-compatible logging methods (.Info(), .Error(), .Debug(), .Warn()) that delegate to an underlying ILogger instance.

public class ContextLogger
type ContextLogger = class
Public Class ContextLogger
Inheritance
ContextLogger

Constructors

Name Description
ContextLogger(ILogger)

Provides backward-compatible logging methods (.Info(), .Error(), .Debug(), .Warn()) that delegate to an underlying ILogger instance.

Properties

Name Description
Logger

Gets the underlying ILogger instance.

Methods

Name Description
Debug(Object[])

Logs a message at the Debug level.

Error(Object[])

Logs a message at the Error level.

Info(Object[])

Logs a message at the Information level.

Warn(Object[])

Logs a message at the Warning level.

Applies to