Skip to content

fix: support custom TimeFormat for console formatter - #136

Merged
nrwiersma merged 7 commits into
hamba:mainfrom
DrPsychick:main
Jul 22, 2026
Merged

fix: support custom TimeFormat for console formatter#136
nrwiersma merged 7 commits into
hamba:mainfrom
DrPsychick:main

Conversation

@DrPsychick

@DrPsychick DrPsychick commented Jul 18, 2026

Copy link
Copy Markdown
Contributor

Goal of this PR

Support using a different TimeFormat than time.Kitchen for the console formatter.

  • deprecates TimeFormatUnix and uses TimeFormatDefault instead, keeping the use of time.Unix() as a default.
  • adds TimeFormatConsole set to time.Kitchen as before, but can now be changed.

How did I test it?

Comment thread format.go Outdated
Deprecate TimeFormatUnix and replace it with TimeFormatDefault.
Comment thread format.go Outdated
Comment thread format.go Outdated
Comment thread logger.go Outdated
Comment thread format_test.go Outdated
Comment thread format_test.go Outdated
Comment thread logger.go Outdated
@nrwiersma
nrwiersma merged commit a1b53e7 into hamba:main Jul 22, 2026
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants