Class TypedLogger<TService>
NLog logger for the TService
.
Inheritance
System.Object
TypedLogger<TService>
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()
Namespace: Kephas.Logging
Assembly: Kephas.Core.dll
Syntax
[OverridePriority(Priority.Low)]
public class TypedLogger<TService> : ILogger<TService>, ILogger
Type Parameters
Name | Description |
---|---|
TService | The type of the service. |
Constructors
| Improve this Doc View SourceTypedLogger(ILogManager)
Initializes a new instance of the TypedLogger<TService> class.
Declaration
public TypedLogger(ILogManager logManager)
Parameters
Type | Name | Description |
---|---|---|
ILogManager | logManager | The log manager. |
Methods
| Improve this Doc View SourceIsEnabled(LogLevel)
Indicates whether logging at the indicated level is enabled.
Declaration
public bool IsEnabled(LogLevel level)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The logging level. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Log(LogLevel, Exception, String, Object[])
Logs the information at the provided level.
Declaration
public void Log(LogLevel level, Exception exception, string messageFormat, params object[] args)
Parameters
Type | Name | Description |
---|---|---|
LogLevel | level | The logging level. |
System.Exception | exception | The exception. |
System.String | messageFormat | The message format. |
System.Object[] | args | The arguments. |