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
-
objectFileLoggerProvider
Constructors
FileLoggerProvider(IWebHostEnvironment, IConfigManager)
public FileLoggerProvider(IWebHostEnvironment environment, IConfigManager configManager)
Parameters
environment
IWebHostEnvironmentconfigManager
IConfigManager
Methods
CreateLogger(string)
Creates a new Microsoft.Extensions.Logging.ILogger instance.
public ILogger CreateLogger(string categoryName)
Parameters
categoryName
stringThe category name for messages produced by the logger.
Returns
- ILogger
The instance of Microsoft.Extensions.Logging.ILogger that was created.
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()