Show / Hide Table of Contents

GetLogger Method

GetLogger<T>()

Creates a new ILogger instance using the full name of the given type.

C#
public static ILogger GetLogger<T>()

Returns

ILogger

The ILogger that was created.

Type Parameters

Name Description
T

The type.

GetLogger(string)

Creates a new ILogger instance using the full name of the given type.

C#
public static ILogger GetLogger(string categoryName)

Parameters

Type Name Description
string categoryName

Returns

ILogger

The ILogger that was created.

GetLogger()

C#
[Obsolete("Obsolete, use equivalent ILogger method, or view the changelog for further instruction.")]
public static Logger GetLogger()

Returns

Logger

In this article
Back to top Generated by DocFX