ConsoleLogger Class
Namespace: PTS.EntityLayer.Logging
Assembly: PTS.EntityLayer.Logging.dll
Syntax
public class ConsoleLogger : ILogger
Inheritance
System.Object
ConsoleLogger
Implements
Microsoft.Extensions.Logging.ILogger
Methods
BeginScope<TState>(TState)
Declaration
public IDisposable BeginScope<TState>(TState state)
Parameters
| Type | Name | Description |
|---|---|---|
| TState | state |
Returns
| Type | Description |
|---|---|
| System.IDisposable |
Type Parameters
| Name | Description |
|---|---|
| TState |
IsEnabled(LogLevel)
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Logging.LogLevel | logLevel |
Returns
| Type | Description |
|---|---|
| System.Boolean |
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
Declaration
public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.Logging.LogLevel | logLevel | |
| Microsoft.Extensions.Logging.EventId | eventId | |
| TState | state | |
| System.Exception | exception | |
| System.Func<TState, System.Exception, System.String> | formatter |
Type Parameters
| Name | Description |
|---|---|
| TState |
Implements
Microsoft.Extensions.Logging.ILogger
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()