ConsoleLogger Class
Definition
Caution
This type is obsolete and will be removed in a future version. The recommended alternative is ConsoleLoggerProvider.
public ref class ConsoleLogger : Microsoft::Extensions::Logging::ILogger
public class ConsoleLogger : Microsoft.Extensions.Logging.ILogger
[System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is ConsoleLoggerProvider.")]
public class ConsoleLogger : Microsoft.Extensions.Logging.ILogger
type ConsoleLogger = class
interface ILogger
[<System.Obsolete("This type is obsolete and will be removed in a future version. The recommended alternative is ConsoleLoggerProvider.")>]
type ConsoleLogger = class
interface ILogger
Public Class ConsoleLogger
Implements ILogger
- Inheritance
-
ConsoleLogger
- Attributes
- Implements
Constructors
ConsoleLogger(String, Func<String,LogLevel,Boolean>, Boolean) | |
ConsoleLogger(String, Func<String,LogLevel,Boolean>, IExternalScopeProvider) |
Properties
Console | |
DisableColors | |
Filter | |
IncludeScopes | |
Name |
Methods
BeginScope<TState>(TState) |
Begins a logical operation scope. |
Equals(Object) |
Determines whether the specified object is equal to the current object. (Inherited from Object) |
GetHashCode() |
Serves as the default hash function. (Inherited from Object) |
GetType() |
Gets the Type of the current instance. (Inherited from Object) |
IsEnabled(LogLevel) |
Checks if the given |
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState,Exception,String>) |
Writes a log entry. |
MemberwiseClone() |
Creates a shallow copy of the current Object. (Inherited from Object) |
ToString() |
Returns a string that represents the current object. (Inherited from Object) |
WriteMessage(LogLevel, String, Int32, String, Exception) |