![]() |
VOOZH | about |
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
<PackageReference Include="Chickensoft.GoDotLog" Version="1.2.0" />
<PackageVersion Include="Chickensoft.GoDotLog" Version="1.2.0" />Directory.Packages.props
<PackageReference Include="Chickensoft.GoDotLog" />Project file
paket add Chickensoft.GoDotLog --version 1.2.0
#r "nuget: Chickensoft.GoDotLog, 1.2.0"
#:package Chickensoft.GoDotLog@1.2.0
#addin nuget:?package=Chickensoft.GoDotLog&version=1.2.0Install as a Cake Addin
#tool nuget:?package=Chickensoft.GoDotLog&version=1.2.0Install as a Cake Tool
👁 Chickensoft Badge
👁 Discord
👁 Read the docs
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 | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net6.0 net6.0 is compatible. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. 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. |
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. |
This package is not used by any popular GitHub repositories.
Chickensoft.GoDotLog release.