MattiasCibien.Extensions.Logging.Logcat 1.1.4

There is a newer prerelease version of this package available.
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                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="MattiasCibien.Extensions.Logging.Logcat" Version="1.1.4" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MattiasCibien.Extensions.Logging.Logcat --version 1.1.4                
#r "nuget: MattiasCibien.Extensions.Logging.Logcat, 1.1.4"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// 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

Nuget

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 Compatible and additional computed target framework versions.
.NET net6.0-android31.0 is compatible.  net7.0-android was computed.  net8.0-android was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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