Skip to content

crozone/AdbLogger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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<SomeClass>();
 
 ...
 
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

About

A Xamarin Android Adb logger for the Microsoft.Extensions.Logging framework.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages