Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/PawKanarek/PerformanceLoggerXamairn
Logger for xamarin forms app
https://github.com/PawKanarek/PerformanceLoggerXamairn
Last synced: about 1 month ago
JSON representation
Logger for xamarin forms app
- Host: GitHub
- URL: https://github.com/PawKanarek/PerformanceLoggerXamairn
- Owner: PawKanarek
- Created: 2020-02-19T20:59:04.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-12-07T12:46:22.000Z (about 3 years ago)
- Last Synced: 2024-08-03T23:17:18.460Z (4 months ago)
- Language: C#
- Size: 700 KB
- Stars: 3
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-xamarin-forms - PerformanceLoggerXamarin ★4
README
# PerformanceLoggerXamairn
Light & Fast logger provider with simple performance measurements for Xamarin.Forms apps with additional extension for Visual StuidoExample of usage:
```
Logger.SetProvider(new AndroidLogger()); // Initalize Logger
...Logger.Start(out var reference); // Start Measuring time
...
Logger.Step(reference); // Lets make step and see how long its take
...
Logger.Step(reference); // Lets make another step and see how long its take
...
Logger.Stop(reference); // stop measuring....
Logger.WriteLine("HelloWriteLine"); // you can also use WriteLine
```This will give you this bjuːtɪfʊl output
```
01:52:34.693 MainActivity.cs:19 OnCreate() T:1. Start
01:52:34.833 MainActivity.cs:23 OnCreate() T:1. Step 139 ms.
01:52:34.892 MainActivity.cs:26 OnCreate() T:1. Step 198 ms.
01:52:35.150 MainActivity.cs:29 OnCreate() T:1. Stop 456 ms.
01:52:35.151 MainActivity.cs:31 OnCreate() T:1. HelloWriteLine
```
Real life example![example](https://github.com/PawKanarek/PerformanceLoggerXamairn/blob/master/images/Preview.png)
## Visual Studio Extension
Visual Studio Extension available here:
https://marketplace.visualstudio.com/items?itemName=PawKanarek.v1To use VisualStudio Extension you need to initalize logger with AndroidLoggerProvider.
## Loggers Example
[DefaultLoggerProvider.cs](https://github.com/PawKanarek/PerformanceLoggerXamairn/blob/master/src/PerformanceLoggerXamairn/DefaultLoggerProvider.cs)[AndroidLoggerProvider.cs](https://github.com/PawKanarek/PerformanceLoggerXamairn/blob/master/src/PerformanceLoggerXamairn.Android/AndroidLoggerProvider.cs)
# TOD0
ios