tmds / Tmds.Systemd

.NET Core library for interacting with systemd
Other
128 stars 17 forks source link

[WIP] Support structured logging #10

Closed tmds closed 6 years ago

tmds commented 6 years ago

new public API:

class JournalMessage : IDisposable
{
   bool IsEnabled { get; }
   JournalMessage Append(string name, object value);
}
enum LogFlags { .. }
class ServiceManager
{
   static bool IsJournalAvailable { get; }
   static string SyslogIdentifier { get; set; }
   static JournalMessage GetJournalMessage();
   static void Log(LogFlags, JournalMessage);
}

Library changes from netstandard2.0 to netcoreapp2.0.