Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/trackman/serilog-enrichers-xamarin
Xamarin Android and iOS Device information enrichment for Serilog
https://github.com/trackman/serilog-enrichers-xamarin
serilog serilog-enrichers xamarin-android xamarin-ios
Last synced: about 1 month ago
JSON representation
Xamarin Android and iOS Device information enrichment for Serilog
- Host: GitHub
- URL: https://github.com/trackman/serilog-enrichers-xamarin
- Owner: TrackMan
- License: mit
- Created: 2018-09-21T13:29:40.000Z (over 6 years ago)
- Default Branch: develop
- Last Pushed: 2023-06-22T04:58:19.000Z (over 1 year ago)
- Last Synced: 2024-11-07T12:07:35.203Z (about 1 month ago)
- Topics: serilog, serilog-enrichers, xamarin-android, xamarin-ios
- Language: C#
- Size: 62.5 KB
- Stars: 5
- Watchers: 3
- Forks: 1
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Serilog Enrichers for Xamarin
[![Build status](https://osteost.visualstudio.com/serilog-enrichers-xamarin/_apis/build/status/serilog-enrichers-xamarin-CI)](https://osteost.visualstudio.com/serilog-enrichers-xamarin/_build/latest?definitionId=5)
[![NuGet](https://img.shields.io/nuget/v/Serilog.Enrichers.Xamarin.svg)](https://www.nuget.org/packages/Serilog.Enrichers.Xamarin)Xamarin Android and iOS Device information enrichment for Serilog
## Installing
> Install-Package Serilog.Enrichers.Xamarin
## Usage
```csharp
var configuration = new LoggerConfiguration()
// Android
.Enrich.WithDisplayMetrics() // Adds `DisplayMetrics` property
.Enrich.WithFirmwareVersion() // Adds `FirmwareVersion` property
.Enrich.WithHardwareVersion() // Adds `HardwareVersion` property
.Enrich.WithDeviceId() // Adds `DeviceId` property
.Enrich.WithDeviceName() // Adds `DeviceName` property
.Enrich.WithManufacturerName() // Adds `DeviceManufacturer` property
.Enrich.WithDeviceOrientation() // Adds `DeviceOrientation` property (can be expensive since it is not cached)
.Enrich.WithPackageName() // Adds `PackageName` property
.Enrich.WithPackageVersionName() // Adds `PackageVersionName` property
.Enrich.WithPackageVersionCode() // Adds `PackageVersionCode` property
// iOS
.Enrich.WithDisplayMetrics() // Adds `DisplayMetrics` property
.Enrich.WithSystemVersion() // Adds `DeviceSystemVersion` property
.Enrich.WithDeviceModel() // Adds `DisplayModel` property
.Enrich.WithDeviceId() // Adds `DisplayId` property
.Enrich.WithDeviceName() // Adds `DisplayName` property
.Enrich.WithPackageName() // Adds `PackageName` property (CFBundleName)
.Enrich.WithPackageVersionName() // Adds `PackageVersionName` property (CFBundleShortVersionString)
.Enrich.WithPackageVersionCode() // Adds `PackageVersionCode` property (CFBundleVersion)
```# License
This project is licensed under the MIT License, see the LICENSE file for more information