Skip to content

Instantly share code, notes, and snippets.

@eka
Last active June 20, 2024 07:19
Show Gist options
  • Save eka/d745e1bf880478a440b9027c2f180c2e to your computer and use it in GitHub Desktop.
Save eka/d745e1bf880478a440b9027c2f180c2e to your computer and use it in GitHub Desktop.
Small Print wrapper for Godot that includes time and time in ms since play started - Add this to Autoload to use as Singleton
extends Node
func log(message: String) -> void:
print("-> %s %s %s " % [Time.get_time_string_from_system(), str(Time.get_ticks_msec()), message])
func _ready() -> void:
GDLogger.log("Logger services ready")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment