Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Optionally prepend timestamps#13

Merged
russmatney merged 2 commits intorussmatney:mainfrom
gofastlily:timestamps
Sep 12, 2025
Merged

Optionally prepend timestamps#13
russmatney merged 2 commits intorussmatney:mainfrom
gofastlily:timestamps

Conversation

@gofastlily
Copy link
Contributor

⚠️ Opinionated PR ⚠️

Synopsis

Optionally prepend timestamps to log output.

Changes

Settings have been added to show/hide timestamps, set the type of timestamp used, and the format of human-readable timestamps.

Timestamps use Godot's .format() method under the hood to allow for optional fields. The default format is {hour}:{minute}:{second}.

The example scene has been updated to help showcase timestamp options.

Tests have been added to ensure timestamps show/hide appropriately and to ensure human-readable formats work as-expected.

Author's Notes

I've considered using something like .NET's approach for differing format values.

Not sure if the proverbial juice is worth the squeeze there, but if folks are interested I can make that change.

@russmatney
Copy link
Owner

Ty for this, a much asked-for feature! All sounds great - I hope to give it a read and test and get it merged later today/tonight!

Copy link
Owner

@russmatney russmatney left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great! Thanks so much! Super clean and thank you for the tests!

I feel some debate about coloring it, but maybe it's better plain anyway - also some debate about combining it with the file name/number prefix, but maybe it gets confusing in there...... just making me think, haha. Nothing blocking, this is a great feature add.

Much appreciated! I'll try to get a new version released to the asset lib this weekend.

@russmatney russmatney merged commit 55aa8d9 into russmatney:main Sep 12, 2025
@gofastlily gofastlily deleted the timestamps branch September 12, 2025 01:04
@russmatney
Copy link
Owner

Screenshot 2025-09-11 at 9 05 01 PM

Also, it's super cool that we can toy with the format right in the example scene - nice work!

@gofastlily
Copy link
Contributor Author

Glad you like it!

The example scene is getting a bit crowded, so it'll probably need a rework if we add more features 😂

@russmatney
Copy link
Owner

@gofastlily I created a v0.2.0 release with the latest and submitted to the godot asset lib + store beta today - should be approved soon-ish. Thanks much for another great feature and for all the doc updates!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments