Class LoggerBase

Minimalist logger implementation, intended for private use only.

Inheritance
Object
LoggerBase
Implements
ILogger
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Solti.Utils.Rpc.Internals
Assembly: Solti.Utils.Rpc.Server.dll
Syntax
public abstract class LoggerBase : ILogger

Constructors

LoggerBase(String)

Creates a new LoggerBase instance.

Declaration
protected LoggerBase(string category)
Parameters
Type Name Description
String category

Properties

Category

See category.

Declaration
public string Category { get; }
Property Value
Type Description
String

Methods

BeginScope<TState>(TState)

See BeginScope<TState>(TState).

Declaration
public virtual IDisposable BeginScope<TState>(TState state)
Parameters
Type Name Description
TState state
Returns
Type Description
IDisposable
Type Parameters
Name Description
TState

GetDefaultCategory<TCategory>()

Gets the default category.

Declaration
protected static string GetDefaultCategory<TCategory>()
Returns
Type Description
String
Type Parameters
Name Description
TCategory

IsEnabled(LogLevel)

See IsEnabled(LogLevel).

Declaration
public bool IsEnabled(LogLevel logLevel)
Parameters
Type Name Description
LogLevel logLevel
Returns
Type Description
Boolean

Log<TState>(LogLevel, EventId, TState, Exception, Func<TState, Exception, String>)

See 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 Name Description
LogLevel logLevel
EventId eventId
TState state
Exception exception
Func<TState, Exception, String> formatter
Type Parameters
Name Description
TState

LogCore(String)

The concrete logger invocation.

Declaration
protected abstract void LogCore(string message)
Parameters
Type Name Description
String message

Implements

Microsoft.Extensions.Logging.ILogger
In This Article
Back to top Generated by DocFX