SimpleConsoleLogger 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.
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 |
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) | Writes a log entry. |