CitizenFX.Extensions.Client.Serilog 2.12.0

dotnet add package CitizenFX.Extensions.Client.Serilog --version 2.12.0
NuGet\Install-Package CitizenFX.Extensions.Client.Serilog -Version 2.12.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="CitizenFX.Extensions.Client.Serilog" Version="2.12.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add CitizenFX.Extensions.Client.Serilog --version 2.12.0
#r "nuget: CitizenFX.Extensions.Client.Serilog, 2.12.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 CitizenFX.Extensions.Client.Serilog as a Cake Addin
#addin nuget:?package=CitizenFX.Extensions.Client.Serilog&version=2.12.0

// Install CitizenFX.Extensions.Client.Serilog as a Cake Tool
#tool nuget:?package=CitizenFX.Extensions.Client.Serilog&version=2.12.0

CitizenFX.Extensions.Client.Serilog

Downloads GitHub release Nuget GitHub Workflow Status

A fork of the logging library known as Serilog, based off v2.12.0 for compatability with .NET client-side FiveM

Example

var logger = new LoggerConfiguration()
    .MinimumLevel.Information()
    .WriteTo.FiveM()
    .CreateLogger();

logger.Information("Hello from the FiveM client!");

Changes from v2.12.0 of Serilog

v2.12.0-cfx

  • #1 - Trim files, remove assembly signing, only target net452
  • #2 - Add CI/CD proceeded by fix in #4
  • #3 - Remove extra performance tests & results, this just bloated things for the purpose of this fork
  • #5 - Un-yield yield return and yield break uses
  • #6 - Add get set to PropertyToken._position
  • #7 - Add FiveM Client Console Sink

Notes

  • This fork is in NO WAY affiliated with the Serilog Organization or the Serilog project, it's purely a fork to provide compatability with FiveM's client-resource shipped mono
  • This fork ONLY PROVIDES support for incompatibilities with .NET client-side FiveM, if there's an incompatibility report it here
Product Compatible and additional computed target framework versions.
.NET Framework net452 is compatible.  net46 was computed.  net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 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
2.12.0 182 12/30/2023