mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2024-07-01 02:46:37 +02:00
17 lines
585 B
C#
17 lines
585 B
C#
using System;
|
|
using Serilog;
|
|
using ShareeBike.Model.Device;
|
|
|
|
namespace ShareeBike.Model.Logging
|
|
{
|
|
public class AppAndEnvironmentInfo
|
|
{
|
|
public void LogHeader(ISmartDevice device, AppFlavor appFlavor, Version appVersion)
|
|
{
|
|
Log.ForContext<AppAndEnvironmentInfo>().Information($"App: {appFlavor.GetDisplayName()}, version {appVersion}");
|
|
Log.ForContext<AppAndEnvironmentInfo>().Information($"OS: {device.Platform}, version: {device.VersionText}");
|
|
Log.ForContext<AppAndEnvironmentInfo>().Information($"Device: {device.Model}, manufacturer: {device.Manufacturer}");
|
|
}
|
|
}
|
|
}
|