ContextLogger Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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 ( |
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. |