Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add logger.console_time_format option #130

Merged

Conversation

ginger51011
Copy link
Collaborator

@ginger51011 ginger51011 commented Jan 16, 2024

I personally enjoy watching the pretty logs from hell in my terminal, but I don't like AM/PM.

This allows users to set whatever they want in the console, while keeping the old 03:04PM format as a default.

This change does not affect the logs written to file.

Right now I don't do any validation on the format, but setting the value to something like 666 just uses that for all the timestamps, which I guess is nice for screenshots.

Copy link
Owner

@yunginnanet yunginnanet left a comment

Choose a reason for hiding this comment

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

nice, i dig it

Copy link
Owner

@yunginnanet yunginnanet left a comment

Choose a reason for hiding this comment

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

can you squash all your commits into one GPG signed commit so we can merge this gem?

thanks

I personally enjoy watching the pretty logs in my terminal,
but I don't like AM/PM.

This allows users to set whatever they want in the console, while
keeping the old '03:04PM' format as a default.

This change does not affect the logs written to file.
@ginger51011
Copy link
Collaborator Author

Good point, fixed now, sorry for messy PR :)

Copy link
Owner

@yunginnanet yunginnanet left a comment

Choose a reason for hiding this comment

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

TODO: document and add examples in README.md, so I'll wait till we do that to roll out a release including the feature

but other than that, it's a pleasant feature and harmless enough

welcome to MergeTown

@yunginnanet yunginnanet merged commit dab95ba into yunginnanet:main Jan 18, 2024
1 check passed
@ginger51011 ginger51011 deleted the feat/add-console-time-format branch January 18, 2024 20:58
yunginnanet added a commit that referenced this pull request Jun 26, 2024
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