SimpleConsoleLogger Class

Definition

A simple console logger - logs all incoming log messages to the console

public class SimpleConsoleLogger : Microsoft.Extensions.Logging.ILogger
type SimpleConsoleLogger = class
    interface ILogger
Public Class SimpleConsoleLogger
Implements ILogger
Inheritance
SimpleConsoleLogger
Implements

Constructors

SimpleConsoleLogger(String)

Creates console output with color support

SimpleConsoleLogger(String, LogLevel)

Creates console output with color support

Properties

LoggerName

Name of the logger

MinLogLevel

Specifies the minimum log level that is printed. Default is Information

Methods

BeginScope<TState>(TState)

Begins a logical operation scope.

IsEnabled(LogLevel)

Checks if the given logLevel is enabled.

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>)

Writes a log entry.

Applies to