Chickensoft.GoDotLog 1.2.0

Suggested Alternatives

Chickensoft.Log

Additional Details

We've introduced Chickensoft.Log and Chickensoft.Log.Godot to replace this :))

dotnet add package Chickensoft.GoDotLog --version 1.2.0
                    
NuGet\Install-Package Chickensoft.GoDotLog -Version 1.2.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="Chickensoft.GoDotLog" Version="1.2.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Chickensoft.GoDotLog" Version="1.2.0" />
                    
Directory.Packages.props
<PackageReference Include="Chickensoft.GoDotLog" />
                    
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 Chickensoft.GoDotLog --version 1.2.0
                    
#r "nuget: Chickensoft.GoDotLog, 1.2.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.
#:package Chickensoft.GoDotLog@1.2.0
                    
#: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=Chickensoft.GoDotLog&version=1.2.0
                    
Install as a Cake Addin
#tool nuget:?package=Chickensoft.GoDotLog&version=1.2.0
                    
Install as a Cake Tool

Chickensoft.GoDotLog

Chickensoft Badge Discord Read the docs line coverage branch coverage

Opinionated Godot logging interface and console implementation for C#.


<p align="center"> <img alt="Chickensoft.GoDotLog" src="Chickensoft.GoDotLog/icon.png" width="200"> </p>

public class MyEntity {
  // Create a log which outputs messages prefixed with the name of the class.
  private ILog _log = new GDLog(nameof(MyClass));
}

Logs can perform a variety of common actions (and output messages if they fail automatically):

_log.Print("My message");

_log.Warn("My message");

_log.Err("My message");

// Run a potentially unsafe action. Any errors thrown from the action will
// be output by the log. An optional error handler callback can be provided
// which will be invoked before the exception is re-thrown.
_log.Run(
  () => { _log.Print("Potentially unsafe action"); },
  (e) => {
    _log.Err("Better clean up after myself...whatever I did failed.");
  }
);

// Throw an assertion exception with the given message if the assertion fails.
_log.Assert(node.Name == "MyNode", "Must be valid node name.");

// Return the value of a function or a fallback value.
var result = _log.Always<T>(
  () => new Random().Next(0, 10) > 5 ? "valid value" : null,
  "fallback value"
);

// Print a decently formatted stack trace.
_log.Print(new StackTrace());
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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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 Chickensoft.GoDotLog:

Package Downloads
Chickensoft.GoDotNet

State machines, notifiers, and other utilities for C# Godot development.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.2.0 1,476 8/15/2024 1.2.0 is deprecated because it is no longer maintained.
1.1.27 278 8/15/2024 1.1.27 is deprecated because it is no longer maintained.
1.1.26-godot4.3.0-rc.3 6,978 8/8/2024 1.1.26-godot4.3.0-rc.3 is deprecated because it is no longer maintained.
1.1.25-godot4.3.0-rc.2 185 8/1/2024 1.1.25-godot4.3.0-rc.2 is deprecated because it is no longer maintained.
1.1.24-godot4.3.0-rc.1 155 7/27/2024 1.1.24-godot4.3.0-rc.1 is deprecated because it is no longer maintained.
1.1.23-godot4.3.0-beta.3 243 7/9/2024 1.1.23-godot4.3.0-beta.3 is deprecated because it is no longer maintained.
1.1.22-godot4.3.0-beta.2 291 6/20/2024 1.1.22-godot4.3.0-beta.2 is deprecated because it is no longer maintained.
1.1.21-godot4.3.0-beta.1 363 5/31/2024 1.1.21-godot4.3.0-beta.1 is deprecated because it is no longer maintained.
1.1.20 2,144 4/24/2024 1.1.20 is deprecated because it is no longer maintained.
1.1.19 269 4/24/2024 1.1.19 is deprecated because it is no longer maintained.
1.1.18-godot4.2.2-rc.1 16,313 1/26/2024 1.1.18-godot4.2.2-rc.1 is deprecated because it is no longer maintained.
1.1.17 5,031 12/12/2023 1.1.17 is deprecated because it is no longer maintained.
1.1.16-godot4.2.1-rc.1 776 12/7/2023 1.1.16-godot4.2.1-rc.1 is deprecated because it is no longer maintained.
1.1.15 315 11/30/2023 1.1.15 is deprecated because it is no longer maintained.
1.1.14-godot4.2.0-rc.2 1,280 11/25/2023 1.1.14-godot4.2.0-rc.2 is deprecated because it is no longer maintained.
1.1.13-godot4.2.0-beta.5 739 11/7/2023 1.1.13-godot4.2.0-beta.5 is deprecated because it is no longer maintained.
1.1.12-godot4.2.0-beta.2 279 10/20/2023 1.1.12-godot4.2.0-beta.2 is deprecated because it is no longer maintained.
1.1.11 3,571 10/4/2023 1.1.11 is deprecated because it is no longer maintained.
1.1.10 1,012 8/21/2023 1.1.10 is deprecated because it is no longer maintained.
1.1.9 9,806 7/12/2023 1.1.9 is deprecated because it is no longer maintained.
Loading failed

Chickensoft.GoDotLog release.