{"id":31158035,"url":"https://github.com/mysteriousmilk/godotlogging","last_synced_at":"2025-10-04T15:39:37.973Z","repository":{"id":49278743,"uuid":"517209960","full_name":"MysteriousMilk/GodotLogging","owner":"MysteriousMilk","description":"A logging library for Godot 4 (C#).","archived":false,"fork":false,"pushed_at":"2024-07-08T04:56:21.000Z","size":33,"stargazers_count":9,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-30T08:24:18.097Z","etag":null,"topics":["csharp","dotnet","gamedev","godot","godot-engine"],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MysteriousMilk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-07-24T02:38:44.000Z","updated_at":"2025-07-07T06:06:28.000Z","dependencies_parsed_at":"2024-06-23T21:44:22.136Z","dependency_job_id":"3e4b67dc-201e-4c56-8025-263597ba70c4","html_url":"https://github.com/MysteriousMilk/GodotLogging","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/MysteriousMilk/GodotLogging","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MysteriousMilk%2FGodotLogging","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MysteriousMilk%2FGodotLogging/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MysteriousMilk%2FGodotLogging/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MysteriousMilk%2FGodotLogging/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MysteriousMilk","download_url":"https://codeload.github.com/MysteriousMilk/GodotLogging/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MysteriousMilk%2FGodotLogging/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275851822,"owners_count":25540136,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-18T02:00:09.552Z","response_time":77,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["csharp","dotnet","gamedev","godot","godot-engine"],"created_at":"2025-09-18T23:27:52.945Z","updated_at":"2025-09-18T23:27:55.892Z","avatar_url":"https://github.com/MysteriousMilk.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Godot Logging Library\n[![NuGet version (Godot.Logging)](https://img.shields.io/badge/nuget-v1.2-blue?style=flat-square)](https://www.nuget.org/packages/Godot.Logging/1.2/)\\\n[![NuGet version (Godot.Logging)](https://img.shields.io/badge/nuget-v1.1.4-blue?style=flat-square)](https://www.nuget.org/packages/Godot.Logging/1.1.4/)\n\nA C# logging library for the Godot game engine. The library provides several Log Targets needed to log messages in a variety of formats. This is intended to work with the .NET version of Godot (C#). The latest NuGet packages provide targets for .NET 6, .NET 7, and .NET 8.\n\n## Version Compatibility\nDifferent versions of Godot.Logging may support different version of the Godot SDK. See below.\n\n**Godot.Logging v1.2.\\*** -\u003e Godot SDK 4.2.2 or greater\\\n**Godot.Logging v1.1.\\*** -\u003e Godot SDK 4.0.2 or greater\n\n## Usage\n#### Overview\nLogging can be configured for use in just a few lines of code.\n```C#\n// Create a configuration for the logger\nLogConfiguration config = new LogConfiguration();\nconfig.RegisterTarget(new GDPrintTarget(\"GodotConsole\"));\n\n// Set the configuration\nGodotLogger.SetConfiguration(config);\n\n// Start logging messages!\nGodotLogger.LogInfo(\"Hello Godot!\");\n```\n\n#### Logging Exceptions\nExceptions may be logged as well.\n```C#\ntry\n{\n    throw new Exception(exMsg);\n}\ncatch (Exception ex)\n{\n    GodotLogger.LogException(ex, \"An exception occurred.\");\n}\n```\n\nWhen logging excpetions, if preferred, the whole stack trace can be outputted in the log with the following setting.\n```C#\nGodotLogger.Instance.Configuration.IncludeExceptionCallStack = true;\n```\n\n#### Format Rules\nFormatting rules (output format in the log) may be specified. In the LogConfiguration, you may specify 1 format rule per log level.\n\n```C#\nFormatRule infoRule = new FormatRule()\n{\n    FormatText = \"[${level}][${classname}.${methodname}] ${message}\",\n    FormatLogLevel = LogLevel.Info\n};\nGodotLogger.Instance.Configuration.ApplyFormattingRule(infoRule);\n```\nAs seen above, format rules may include macros to indicate parts of the format to be replace with log entry specific information. Here are the current macros that are supported.\n\n**\\${level}** - Log level associated with the log entry.\\\n**\\${classname}** - Class or type name of the object from where the log entry was invoked.\\\n**\\${methodname}** - Name of the method within the object from where the log entry was invoked.\\\n**\\${message}** - The actual message recorded for the log entry / event.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysteriousmilk%2Fgodotlogging","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmysteriousmilk%2Fgodotlogging","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmysteriousmilk%2Fgodotlogging/lists"}