Interface ILoggerFactory
Creates ILogger instances.
public interface ILoggerFactory
Methods
Create(object)
Creates an ILogger instance.
ILogger Create(object user)
Parameters
userobjectThe object that will be using that instance. Its type's FullName will be used as the ILogger category.
Returns
Create(string)
Creates an ILogger instance.
ILogger Create(string category)
Parameters
categorystringA namespace (not necessarily a C# namespace in the project) to use as category.
Returns
Examples
Create("Game.PlayerControls.GroundMovement")
Create(Type)
Creates an ILogger instance.
ILogger Create(Type userType)
Parameters
userTypeTypeThe type of the object that will be using that instance. Its FullName will be used as the ILogger category.