Table of Contents

Class LogService

Namespace
The.Logging
Assembly
Instagile.dll

Allows logger creation like ILoggerFactory but without the obsolete 1.0-style AddProvider method

public class LogService
Inheritance
LogService
Inherited Members

Constructors

LogService(ILoggerFactory)

public LogService(ILoggerFactory loggerFactory)

Parameters

loggerFactory ILoggerFactory

Methods

CreateLogger(string)

Create an ILogger for a named category (which should usually be a type name).

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

Returns

ILogger

CreateLogger(Type)

Create an ILogger for some instance of a type t, using the full name of the type as its category.

public ILogger CreateLogger(Type t)

Parameters

t Type

Returns

ILogger

CreateLogger<T>()

Create an ILogger for some instance of a type T, using the full name of the type as its category.

public ILogger<T> CreateLogger<T>()

Returns

ILogger<T>

Type Parameters

T