PixelWrecker.GameLogger 1.0.0

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

// Install PixelWrecker.GameLogger as a Cake Tool
#tool nuget:?package=PixelWrecker.GameLogger&version=1.0.0

PIXEL WRECKER

Game Logger

Lightweight, simple logger for applications that don't support console output by default. For example: Monogame application.

Provides console and file output of messages. Runs in a separate thread without load on the main application.

Supports

  • Windows ✅
  • Linux ❌
  • MacOS ❌

Environment

  • net6.0

Beginning

  1. Implement the ILoggerConfiguration configuration class and override methods:

    • IsActive - Master flag to enable/disable all loggers
    • WriteToConsole - Whether to write a log to the console
    • ConsoleLevel - Console log level
    • WriteToFile - Whether to write a log to the file
    • FileLevel - File log level
    • FileDirectory - Log files storage directory, relative to the application working directory
  2. In your application, call LoggerFactory.Start(ILoggerConfiguration).

  3. Get the logger object Logger log = LoggerFactory.GetLogger(string/Type).

  4. Send message log.Info("Current time - {0}", new []{DateTime.Now}).

  5. Release the resources when application is shutting down LoggerFactory.Dispose().

Product Compatible and additional computed target framework versions.
.NET 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.
  • net6.0

    • No dependencies.

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.0 192 11/7/2022

Release