Table of Contents

Class ClientTraceLoggerProvider

Namespace
RDCore.SDK.Server.Logging
Assembly
RDCore.SDK.dll

Forwards the outer host's ILogger records — the language server's bring-up and workspace narration — to the connected LSP client via SendClientTrace(LogLevel, string, string). The component's own file-sink copy is unaffected. This runs on the outer host; the OmniSharp-internal container's records are forwarded by ScrubbingLanguageServerLoggerProvider.

public sealed class ClientTraceLoggerProvider : ILoggerProvider, IDisposable
Inheritance
ClientTraceLoggerProvider
Implements
Inherited Members

Constructors

ClientTraceLoggerProvider(Func<RDCoreServerApp>)

Forwards the outer host's ILogger records — the language server's bring-up and workspace narration — to the connected LSP client via SendClientTrace(LogLevel, string, string). The component's own file-sink copy is unaffected. This runs on the outer host; the OmniSharp-internal container's records are forwarded by ScrubbingLanguageServerLoggerProvider.

public ClientTraceLoggerProvider(Func<RDCoreServerApp> app)

Parameters

app Func<RDCoreServerApp>

Resolves the running server app. A factory rather than the instance, because the app singleton may not be constructed yet when the logger factory first materialises this provider.

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