Skip to content

Logging singleton for Godot Engine projects (GDScript plugin)

License

Notifications You must be signed in to change notification settings

hedin-hiervard/godot-logger

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Logger - Logging singleton for Godot Engine

The Logger class is a GDScript singleton that provides a logging API for projects developed with Godot Engine.

Usage

Copy the logger.gd file into your project folder, and define it as an autoloaded singleton in your project's settings (e.g. with the name Logger):

Logger="*res://logger.gd"

The methods of the API can then be accessed from any other script via the Logger singleton:

  Logger.warn('alpaca mismatch!')
  Logger.info('reticulating splines...', mymodule)

Read the code for details about the API, it's extensively documented.

Licensing

The Logger class and all other files of this repository are distributed under the MIT license (see the LICENSE.md file).

About

Logging singleton for Godot Engine projects (GDScript plugin)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • GDScript 100.0%