Class StreamLoggerFactory
Supports all classes in the .NET class hierarchy and provides low-level services to derived classes. This is the ultimate base class of all .NET classes; it is the root of the type hierarchy.
public class StreamLoggerFactory : ILoggerFactory
- Inheritance
-
StreamLoggerFactory
- Implements
- Inherited Members
Constructors
StreamLoggerFactory(IConfigHandle<LoggerConfig>)
[Obsolete("Use StreamLoggerFactory(IConfigService configService) instead.", true)]
public StreamLoggerFactory(IConfigHandle<LoggerConfig> configHandle)
Parameters
configHandleIConfigHandle<LoggerConfig>
StreamLoggerFactory(IConfigService)
[Obsolete("Use StreamLoggerFactory(IConfigHandle<LoggerConfig>, IEnumerable<ILogOutput>) instead.")]
public StreamLoggerFactory(IConfigService configService)
Parameters
configServiceIConfigService
StreamLoggerFactory(IConfigService, IEnumerable<ILogOutput>)
[RequiredMember]
public StreamLoggerFactory(IConfigService configService, IEnumerable<ILogOutput> outputs)
Parameters
configServiceIConfigServiceoutputsIEnumerable<ILogOutput>
Methods
Create(string)
Creates an ILogger instance.
public 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")
Initialize()
public void Initialize()