Class LinuxJournalSocketLoggerProvider
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
identifierstringThe 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
categoryNamestringThe category name for messages produced by the logger.
Returns
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()