Table of Contents

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 IWebHostEnvironment
configManager IConfigManager

Methods

CreateLogger(string)

Creates a new ILogger instance.

public ILogger CreateLogger(string categoryName)

Parameters

categoryName string

The category name for messages produced by the logger.

Returns

ILogger

The instance of ILogger that was created.

Dispose()

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

public void Dispose()