GDLogger 1.0.1
dotnet add package GDLogger --version 1.0.1
NuGet\Install-Package GDLogger -Version 1.0.1
<PackageReference Include="GDLogger" Version="1.0.1" />
paket add GDLogger --version 1.0.1
#r "nuget: GDLogger, 1.0.1"
// Install GDLogger as a Cake Addin
#addin nuget:?package=GDLogger&version=1.0.1
// Install GDLogger as a Cake Tool
#tool nuget:?package=GDLogger&version=1.0.1
GDLogger
GDLogger is a simple logger intended to be used in Godot applications.
Available in both GDScript and C#, it supports writing messages to a log file, displaying them in a neat and human-readable format.
Both versions of the logger provide important features such as periodically saving logs to disk and automatically closing the log file on application exit.
Additionally, the C# version automatically logs unhandled Exception
s.
Installation
C#
GDLogger is available as a NuGet package.
Simply include the following lines in a Godot project's.csproj
file (either by editing the file manually or letting an IDE install the package):
Due to a bug in Godot, the following lines will also need to be included in the<ItemGroup> <PackageReference Include="GDLogger" Version="1.0.1"/> </ItemGroup>
.csproj
file to properly compile along with NuGet packages:<PropertyGroup> <CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies> </PropertyGroup>
GDScript
As there is no dedicated package management system for GDScript, simply download theLog.gd
file and include it in a Godot project.
For best results, it is recommended to set it up as an autoload singleton, though it can still be instanced and used as a normal script.
Interoperability
For a GDScript-only project, use the Log.gd
file.
For a Mono (C#) project, use the Log
static class.
Note that this uses custom types that cannot be marshalled by the Godot engine. As such, if the logger's methods need to be called from both GDScript and C#, the GDScript version (Log.gd
) should be used instead, as it inherits from Node
.
Do not attempt to use both the C# and the GDScript versions of the logger at the same time, as it will lead to errors if trying to write to the same log file.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net5.0 was computed. net5.0-windows was computed. net6.0 was computed. 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. |
.NET Core | netcoreapp3.0 was computed. netcoreapp3.1 was computed. |
.NET Standard | netstandard2.1 is compatible. |
.NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
MonoAndroid | monoandroid was computed. |
MonoMac | monomac was computed. |
MonoTouch | monotouch was computed. |
Tizen | tizen60 was computed. |
Xamarin.iOS | xamarinios was computed. |
Xamarin.Mac | xamarinmac was computed. |
Xamarin.TVOS | xamarintvos was computed. |
Xamarin.WatchOS | xamarinwatchos was computed. |
-
.NETFramework 4.7.2
- No dependencies.
-
.NETStandard 2.1
- No dependencies.
NuGet packages (1)
Showing the top 1 NuGet packages that depend on GDLogger:
Package | Downloads |
---|---|
Modot
A mod loader and API for applications made using Godot, with the ability to load C# assemblies, XML data, and resource packs at runtime. |
GitHub repositories (1)
Showing the top 1 popular GitHub repositories that depend on GDLogger:
Repository | Stars |
---|---|
Carnagion/Modot
A mod loader and API for applications made using Godot, with the ability to load C# assemblies, XML data, and resource packs at runtime.
|