NLog.Targets.Firestore 1.0.0

There is a newer version of this package available.
See the version list below for details.
dotnet add package NLog.Targets.Firestore --version 1.0.0
NuGet\Install-Package NLog.Targets.Firestore -Version 1.0.0
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="NLog.Targets.Firestore" Version="1.0.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add NLog.Targets.Firestore --version 1.0.0
#r "nuget: NLog.Targets.Firestore, 1.0.0"
#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 NLog.Targets.Firestore as a Cake Addin
#addin nuget:?package=NLog.Targets.Firestore&version=1.0.0

// Install NLog.Targets.Firestore as a Cake Tool
#tool nuget:?package=NLog.Targets.Firestore&version=1.0.0

NLog.Targets.Firestore

This project provides a custom target for the NLog framework to allow a user to send log messages to own Firestore.

Nuget

This package also available on Nuget and it can install from Nuget:

Install-Package NLog.Targets.Firestore

Parameters

  • ProjectId(Required): A user-assigned unique identifier for the FirebaseProject.
  • PrivateKeyId(Required): The keyString of the API key associated with the WebApp.
  • PrivateKey(Required): To authenticate a service account and authorize it to access Firebase services, you must generate a private key file in JSON format.
  • ClientEmail(Required): Client E-Mail address
  • AuthUri(Optional): Authentication url
  • TokenUri(Optional): Token URL
  • AuthProviderX509CertUrl(Optional): Provider's X509 Certification URL
  • ClientX509CertUrl(Optional): Client's X509 Certification URL
  • Collection(Required): Firestore Collection Name
  • ExcludeLoggers(Optional): Exclude loggers

Config

<?xml version="1.0" encoding="utf-8" ?>

<nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd" xsi:schemaLocation="NLog NLog.xsd"
      xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      autoReload="true"
      internalLogFile="c:\temp\console-example-internal.log"
      internalLogLevel="Info" >

	<extensions>
		<add assembly="NLog.Targets.Firestore" />
	</extensions>

	
	<targets>
		
		<target xsi:type="Console" name="logconsole"
				layout="${longdate}|${level}|${message} |${all-event-properties} ${exception:format=tostring}" />

		<target xsi:name="firestore"
				type= "Firestore"
				FirestoreType= "<Fire Store Type> Ex: service_account"
				ProjectId= "<Project Id>"
				PrivateKeyId="<Private Key Id>"
				PrivateKey="<Private Key>"
				ClientEmail="<Client Email>"
				ClientId= "<Client Id>"
				Collection="<Collection Name>"
				Document="<Document Name>"
				ExcludeLoggers="<ExcludeLoggers> Ex:Program,Microsoft"
				/>
	</targets>

	
	<rules>
		<logger name="*" minlevel="Trace" writeTo="logconsole,firestore" />
		
		
		<logger name="Microsoft.Hosting.Lifetime" minlevel="Info" writeTo="lifetimeConsole, ownFile-web" final="true" />

		
		<logger name="Microsoft.*" maxlevel="Info" final="true" />
		<logger name="System.Net.Http.*" maxlevel="Info" final="true" />

		<logger name="*" minlevel="Trace" writeTo="ownFile-web" />
	</rules>
</nlog>
Product Compatible and additional computed target framework versions.
.NET net5.0 is compatible.  net5.0-windows was computed.  net6.0 is compatible.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows 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.0.6 1,794 12/16/2022
1.0.5 291 12/13/2022
1.0.4 327 12/8/2022
1.0.3 299 11/25/2022
1.0.2 376 11/14/2022
1.0.1 336 11/14/2022
1.0.0 348 11/11/2022

- Add Firestore extension to NLog