Table of Contents

Class OmpLoggerProvider

Namespace
SampSharp.Entities
Assembly
SampSharp.OpenMp.Entities.dll

Provides an implementation of ILoggerProvider that creates loggers which write to the open.mp logging infrastructure.

[ProviderAlias("Omp")]
public sealed class OmpLoggerProvider : ILoggerProvider, IDisposable
Inheritance
OmpLoggerProvider
Implements
Inherited Members

Constructors

OmpLoggerProvider(IOptionsMonitor<OmpLoggerOptions>, SampSharpEnvironment)

Initializes a new instance of the OmpLoggerProvider class.

public OmpLoggerProvider(IOptionsMonitor<OmpLoggerOptions> options, SampSharpEnvironment environment)

Parameters

options IOptionsMonitor<OmpLoggerOptions>

The options monitor for OmpLoggerOptions.

environment SampSharpEnvironment

The SampSharp environment.

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()

public void Dispose()