Class FileLoggerProvider
- Namespace
- Oqtane.Infrastructure
- Assembly
- Oqtane.Server.dll
FileLogger should only be used in scenarios where a database is not available or tenant/site cannot be determined (ie. during startup)
[ProviderAlias("FileLogger")]
public class FileLoggerProvider
- Inheritance
-
FileLoggerProvider
Constructors
FileLoggerProvider(IWebHostEnvironment, IConfigManager)
public FileLoggerProvider(IWebHostEnvironment environment, IConfigManager configManager)
Parameters
environment
IWebHostEnvironmentconfigManager
IConfigManager
Methods
CreateLogger(string)
Creates a new ILogger instance.
public ILogger CreateLogger(string categoryName)
Parameters
categoryName
stringThe category name for messages produced by the logger.
Returns
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()