mirror of
https://dev.azure.com/TeilRad/sharee.bike%20App/_git/Code
synced 2025-07-07 03:56:43 +02:00
Version 3.0.381
This commit is contained in:
parent
f963c0a219
commit
3a363acf3a
1525 changed files with 60589 additions and 125098 deletions
16
SharedBusinessLogic/Model/Logging/AppAndEnvironmentInfo.cs
Normal file
16
SharedBusinessLogic/Model/Logging/AppAndEnvironmentInfo.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
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}");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue