Table of Contents

Class LinuxJournalSocketLoggerProvider

Namespace
VpnHood.AppLib.App.Linux
Assembly
VpnHood.AppLib.App.Linux.dll

Provides loggers that write to the systemd journal's socket, for a process whose standard output is not the journal, as the window a desktop session starts.

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

Remarks

One logger serves every category, without the level word and the scopes: the entries name the app, and the journal shows their priority. It writes warnings and errors only.

Constructors

LinuxJournalSocketLoggerProvider(string)

Provides loggers that write to the systemd journal's socket, for a process whose standard output is not the journal, as the window a desktop session starts.

public LinuxJournalSocketLoggerProvider(string identifier)

Parameters

identifier string

The name the journal files the entries under (journalctl -t).

Remarks

One logger serves every category, without the level word and the scopes: the entries name the app, and the journal shows their priority. It writes warnings and errors only.

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.

Remarks

It gives the same logger for every category.

Dispose()

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

public void Dispose()