Table of Contents

Class LoggerFactory

Namespace
Homa.Sdk.Logging
Assembly
Homa.Sdk.Logging.Abstractions.dll

Static API for creating ILogger instances using ILoggerFactory.

public static class LoggerFactory
Inheritance
LoggerFactory
Inherited Members

Properties

Instance

The ILoggerFactory to use.

public static ILoggerFactory Instance { get; set; }

Property Value

ILoggerFactory

Methods

Create(object)

Creates an ILogger using Instance.

public static ILogger Create(object user)

Parameters

user object

The object that will be using that instance.

Returns

ILogger

An ILogger for user to use.

Create(string)

Creates an ILogger using Instance.

public static ILogger Create(string category)

Parameters

category string

A namespace (not necessarily a C# namespace in the project) to create tags from.

Returns

ILogger

An ILogger with tags constructed from category.

Examples

Create("Game.PlayerControls.GroundMovement")

Create(Type)

Creates an ILogger using Instance.

public static ILogger Create(Type userType)

Parameters

userType Type

The type of the object that will be using that instance.

Returns

ILogger

An ILogger for the instance of type userType to use.