https://github.com/crozone/adblogger
A Xamarin Android Adb logger for the Microsoft.Extensions.Logging framework.
https://github.com/crozone/adblogger
Last synced: over 1 year ago
JSON representation
A Xamarin Android Adb logger for the Microsoft.Extensions.Logging framework.
- Host: GitHub
- URL: https://github.com/crozone/adblogger
- Owner: crozone
- Created: 2018-11-30T06:08:55.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2022-06-22T03:26:09.000Z (about 4 years ago)
- Last Synced: 2025-01-31T09:31:42.316Z (over 1 year ago)
- Language: C#
- Size: 36.1 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# AdbLogger
A Xamarin Android Adb logger for the Microsoft.Extensions.Logging framework.
Built for `net6.0-android` runtime.
### Non-DI example:
```
ILoggerFactory loggerFactory = new LoggerFactory()
.AddAdb("MyApp", LogLevel.Debug);
...
ILogger logger = loggerFactory.CreateLogger();
...
logger.LogInformation("Log some information here!");
```
The logs can then be viewed from an attached `adb` instance:
`adb logcat -s MyApp`
### TODO:
* Create Nuget package
* Add DI example