Table of Contents

Interface ILoggerFactory

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

Creates ILogger instances.

public interface ILoggerFactory

Methods

Create(object)

Creates an ILogger instance.

ILogger Create(object user)

Parameters

user object

The object that will be using that instance. Its type's FullName will be used as the ILogger category.

Returns

ILogger

An ILogger for the user to use.

Create(string)

Creates an ILogger instance.

ILogger Create(string category)

Parameters

category string

A namespace (not necessarily a C# namespace in the project) to use as category.

Returns

ILogger

An ILogger with the given category.

Examples

Create("Game.PlayerControls.GroundMovement")

Create(Type)

Creates an ILogger instance.

ILogger Create(Type userType)

Parameters

userType Type

The type of the object that will be using that instance. Its FullName will be used as the ILogger category.

Returns

ILogger

An ILogger for the instance of type userType to use.