SimpleConsoleLoggerFactory 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 a very simple console logger that does not require a reference to Microsoft.Extensions.Logging.dll
public class SimpleConsoleLoggerFactory : IDisposable, Microsoft.Extensions.Logging.ILoggerFactory
type SimpleConsoleLoggerFactory = class
interface ILoggerFactory
interface IDisposable
Public Class SimpleConsoleLoggerFactory
Implements IDisposable, ILoggerFactory
- Inheritance
-
SimpleConsoleLoggerFactory
- Implements
Constructors
SimpleConsoleLoggerFactory() |
Constructs a console logger with the default log level. |
SimpleConsoleLoggerFactory(LogLevel) |
Constructs a logger factory that creates loggers with the given log level |
Properties
MinLogLevel |
Sets the log level for new loggers. Note that changing this value will only affect new loggers |
Methods
AddProvider(ILoggerProvider) |
The console logger is built-in here |
CreateLogger(String) | Creates a new ILogger instance. |
Dispose() | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. |
Applies to
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for