MattiasCibien.Extensions.Logging.Logcat
1.1.4
See the version list below for details.
dotnet add package MattiasCibien.Extensions.Logging.Logcat --version 1.1.4
NuGet\Install-Package MattiasCibien.Extensions.Logging.Logcat -Version 1.1.4
<PackageReference Include="MattiasCibien.Extensions.Logging.Logcat" Version="1.1.4" />
paket add MattiasCibien.Extensions.Logging.Logcat --version 1.1.4
#r "nuget: MattiasCibien.Extensions.Logging.Logcat, 1.1.4"
// Install MattiasCibien.Extensions.Logging.Logcat as a Cake Addin #addin nuget:?package=MattiasCibien.Extensions.Logging.Logcat&version=1.1.4 // Install MattiasCibien.Extensions.Logging.Logcat as a Cake Tool #tool nuget:?package=MattiasCibien.Extensions.Logging.Logcat&version=1.1.4
MattiasCibien.Extensions.Logging.Logcat
A Microsoft.Extensions.Logging implementation using Android Logcat as output
Usage
Install the package using Nuget:
dotnet add package MattiasCibien.Extensions.Logging.Logcat
or add it to your project (the Condition
tag is used to ensure that the library is only available on Android).
<PackageReference Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'"
Include="MattiasCibien.Extensions.Logging.Logcat" Version="1.0.0" />
After that initialize the library using the provided method in AddLoggging()
.
#if ANDROID
using MattiasCibien.Extensions.Logging.Logcat;
#endif
[...]
builder.Services.AddLogging(configure =>
{
#if ANDROID
configure.AddLogcat(nameof(MyApp));
#endif
});
The only parameter of the AddLogcat()
method is the Tag parameter that is desidered. Remember to wrap the definition inside an #if ANDROID
block as the library
is only available on Android.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net6.0-android31.0 is compatible. net7.0-android was computed. net8.0-android was computed. |
-
net6.0-android31.0
- Microsoft.Extensions.Logging (>= 6.0.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.2.2-alpha | 207 | 6/10/2022 |
1.1.4 | 1,418 | 6/10/2022 |
1.1.2-beta | 175 | 6/10/2022 |
1.0.0 | 384 | 6/9/2022 |