Class LoggerBase
Minimalist logger implementation, intended for private use only.
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public abstract class LoggerBase : ILogger
Constructors
LoggerBase(String)
Declaration
protected LoggerBase(string category)
Parameters
Type |
Name |
Description |
String |
category |
|
Properties
Category
Declaration
public string Category { get; }
Property Value
Methods
BeginScope<TState>(TState)
Declaration
public virtual IDisposable BeginScope<TState>(TState state)
Parameters
Type |
Name |
Description |
TState |
state |
|
Returns
Type Parameters
GetDefaultCategory<TCategory>()
Gets the default category.
Declaration
protected static string GetDefaultCategory<TCategory>()
Returns
Type Parameters
Name |
Description |
TCategory |
|
IsEnabled(LogLevel)
Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Returns
Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)
Declaration
public virtual void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Exception exception, Func<TState, Exception, string> formatter)
Parameters
Type Parameters
LogCore(String)
The concrete logger invocation.
Declaration
protected abstract void LogCore(string message)
Parameters
Type |
Name |
Description |
String |
message |
|
Implements