VOOZH about

URL: https://www.nuget.org/packages/Meatcorps.Engine.Logging/0.1.17-preview.32

⇱ NuGet Gallery | Meatcorps.Engine.Logging 0.1.17-preview.32




Meatcorps.Engine.Logging 0.1.17-preview.32

This is a prerelease version of Meatcorps.Engine.Logging.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package Meatcorps.Engine.Logging --version 0.1.17-preview.32
 
 
NuGet\Install-Package Meatcorps.Engine.Logging -Version 0.1.17-preview.32
 
 
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="Meatcorps.Engine.Logging" Version="0.1.17-preview.32" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Meatcorps.Engine.Logging" Version="0.1.17-preview.32" />
 
Directory.Packages.props
<PackageReference Include="Meatcorps.Engine.Logging" />
 
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Meatcorps.Engine.Logging --version 0.1.17-preview.32
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Meatcorps.Engine.Logging, 0.1.17-preview.32"
 
 
#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.
#:package Meatcorps.Engine.Logging@0.1.17-preview.32
 
 
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Meatcorps.Engine.Logging&version=0.1.17-preview.32&prerelease
 
Install as a Cake Addin
#tool nuget:?package=Meatcorps.Engine.Logging&version=0.1.17-preview.32&prerelease
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Meatcorps.Engine.Logging

Configures Serilog for the Meatcorps engine and registers an ILoggerFactory in the global ObjectManager so any engine module can resolve a logger.

Outputs to both the console and a daily rolling log file.

Setup

Call LoggingModule.Load() always as first, before loading other modules:

LoggingModule.Load();

var host = new GameHostBuilder() // Just an example
 // ...
 .Build();

That's it. The module configures Serilog internally and registers an ILoggerFactory in GlobalObjectManager.

Log output

Console format:

12:34:56.789 [Debug] (MyNamespace.MyClass): Message

File — written to logs/<AssemblyName>-<date>.log next to the executable:

  • Rolling interval: daily
  • Max file size: 10 MB (rolls on size limit)
  • Retained files: 7 days

Resolving a logger in engine code

Any class that has access to GlobalObjectManager can resolve a typed logger:

var loggerFactory = GlobalObjectManager.ObjectManager.Get<ILoggerFactory>();
var logger = loggerFactory!.CreateLogger<MyClass>();

logger.LogInformation("Game started");
logger.LogWarning("Low memory");
logger.LogError(ex, "Unhandled exception");

Notes

  • Minimum log level is Debug.
  • LoggingModule.Load() should only be called once. Calling it multiple times will overwrite the previous Serilog configuration.
  • The log file path is resolved relative to the entry assembly location via FileUtilities.GetFullPath.

License

MIT License See LICENSE for details.

Product Versions Compatible and additional computed target framework versions.
.NET net8.0 net8.0 is compatible.  net8.0-android net8.0-android was computed.  net8.0-browser net8.0-browser was computed.  net8.0-ios net8.0-ios was computed.  net8.0-maccatalyst net8.0-maccatalyst was computed.  net8.0-macos net8.0-macos was computed.  net8.0-tvos net8.0-tvos was computed.  net8.0-windows net8.0-windows was computed.  net9.0 net9.0 was computed.  net9.0-android net9.0-android was computed.  net9.0-browser net9.0-browser was computed.  net9.0-ios net9.0-ios was computed.  net9.0-maccatalyst net9.0-maccatalyst was computed.  net9.0-macos net9.0-macos was computed.  net9.0-tvos net9.0-tvos was computed.  net9.0-windows net9.0-windows was computed.  net10.0 net10.0 was computed.  net10.0-android net10.0-android was computed.  net10.0-browser net10.0-browser was computed.  net10.0-ios net10.0-ios was computed.  net10.0-maccatalyst net10.0-maccatalyst was computed.  net10.0-macos net10.0-macos was computed.  net10.0-tvos net10.0-tvos was computed.  net10.0-windows net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (1)

Showing the top 1 NuGet packages that depend on Meatcorps.Engine.Logging:

Package Downloads
Meatcorps.Engine.RayLib

Meatcorps.Engine is a lightweight, code-first game framework built on top of Raylib. This is the primary Meatcorps Engine RayLib package

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.1.17-preview.38 40 6/24/2026
0.1.17-preview.37 50 5/31/2026
0.1.17-preview.32 60 5/2/2026
0.1.17-preview.31 62 4/27/2026
0.1.17-preview.30 67 3/21/2026
0.1.17-preview.29 64 3/20/2026
0.1.17-preview.28 61 3/20/2026
0.1.17-preview.27 63 3/19/2026
0.1.17-preview.26 66 3/18/2026
0.1.17-preview.25 71 3/18/2026
0.1.17-preview.24 69 3/11/2026
0.1.17-preview.23 74 3/11/2026
0.1.17-preview.22 65 3/9/2026
0.1.17-preview.21 79 3/9/2026
0.1.17-preview.20 74 3/5/2026
0.1.17-preview.19 69 2/25/2026
0.1.17-preview.18 77 2/25/2026
0.1.17-preview.17 72 2/24/2026
0.1.16 144 2/20/2026
0.1.15 236 2/14/2026
Loading failed