Chickensoft.GoDotLog
1.2.0
Suggested Alternatives
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" />
<PackageReference Include="Chickensoft.GoDotLog" />
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
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#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.
#addin nuget:?package=Chickensoft.GoDotLog&version=1.2.0
#tool nuget:?package=Chickensoft.GoDotLog&version=1.2.0
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Chickensoft.GoDotLog
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 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.
-
net6.0
- GodotSharp (>= 4.3.0)
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 | 826 | 8/15/2024 | |
1.1.27 | 177 | 8/15/2024 | |
1.1.26-godot4.3.0-rc.3 | 6,494 | 8/8/2024 | |
1.1.25-godot4.3.0-rc.2 | 133 | 8/1/2024 | |
1.1.24-godot4.3.0-rc.1 | 99 | 7/27/2024 | |
1.1.23-godot4.3.0-beta.3 | 194 | 7/9/2024 | |
1.1.22-godot4.3.0-beta.2 | 244 | 6/20/2024 | |
1.1.21-godot4.3.0-beta.1 | 314 | 5/31/2024 | |
1.1.20 | 1,980 | 4/24/2024 | |
1.1.19 | 167 | 4/24/2024 | |
1.1.18-godot4.2.2-rc.1 | 15,851 | 1/26/2024 | |
1.1.17 | 4,858 | 12/12/2023 | |
1.1.16-godot4.2.1-rc.1 | 722 | 12/7/2023 | |
1.1.15 | 237 | 11/30/2023 | |
1.1.14-godot4.2.0-rc.2 | 1,175 | 11/25/2023 | |
1.1.13-godot4.2.0-beta.5 | 682 | 11/7/2023 | |
1.1.12-godot4.2.0-beta.2 | 224 | 10/20/2023 | |
1.1.11 | 3,398 | 10/4/2023 | |
1.1.10 | 854 | 8/21/2023 | |
1.1.9 | 9,680 | 7/12/2023 | |
1.1.8-godot4.1.0-rc.3 | 2,669 | 7/4/2023 | |
1.1.7-godot4.1.0-rc.2 | 193 | 6/29/2023 | |
1.1.6-godot4.1.0-rc.1 | 185 | 6/27/2023 | |
1.1.5-godot4.1.0-beta.2 | 211 | 6/14/2023 | |
1.1.4 | 359 | 5/19/2023 | |
1.1.3-godot4.0.3-rc.1 | 468 | 4/27/2023 | |
1.1.2 | 943 | 4/4/2023 | |
1.1.1-godot4.0.2-rc.1 | 242 | 4/2/2023 | |
1.1.0-godot4.0.2-rc.1 | 140 | 4/2/2023 | |
1.0.2-godot.4.beta.16 | 165 | 1/30/2023 | |
1.0.2-beta8 | 184 | 12/17/2022 | |
1.0.2-beta6 | 146 | 11/24/2022 | |
1.0.2-beta3 | 151 | 10/29/2022 | |
1.0.2-beta1 | 236 | 9/17/2022 | |
1.0.2-beta.4.0.0.17 | 186 | 2/6/2023 | |
1.0.1 | 1,544 | 4/2/2023 | |
1.0.1-godot4.0.2-rc.1 | 143 | 4/2/2023 | |
1.0.1-beta1 | 236 | 9/17/2022 | |
1.0.0 | 298 | 4/2/2023 | |
1.0.0-beta1 | 271 | 9/17/2022 | |
0.0.5 | 1,641 | 6/20/2022 | |
0.0.4 | 1,514 | 6/18/2022 | |
0.0.3 | 534 | 6/18/2022 | |
0.0.2 | 529 | 6/18/2022 | |
0.0.1 | 528 | 6/18/2022 |
Chickensoft.GoDotLog release.