using System; using Serilog; using TINK.Model.Device; namespace TINK.Model.Logging { public class AppAndEnvironmentInfo { public void LogHeader(ISmartDevice device, AppFlavor appFlavor, Version appVersion) { Log.ForContext().Information($"App: {appFlavor.GetDisplayName()}, version {appVersion}"); Log.ForContext().Information($"OS: {device.Platform}, version: {device.VersionText}"); Log.ForContext().Information($"Device: {device.Model}, manufacturer: {device.Manufacturer}"); } } }