Skip to content

Conversation

@pamburus
Copy link
Owner

Include year in default time format

Description

Changes the default time format from %b %d %T.%3N to %Y-%m-%d %T.%3N to include the year in the output.

Motivation

The previous format only displayed month, day, and time, making it impossible to distinguish log entries across different years. This change ensures that timestamps are more meaningful and informative, especially for logs that span longer time periods.

Changes

  • Updated default time format in etc/defaults/config.toml
  • Updated documentation in README.md to reflect the new default format

Impact

  • Log timestamps will now include the year (e.g., 2026-02-12 08:20:08.123 instead of Feb 12 08:20:08.123)
  • Users can still override this format using the --time-format option or HL_TIME_FORMAT environment variable
  • This is a breaking change for users relying on the exact format of the output

Closes #1319

@codecov
Copy link

codecov bot commented Feb 12, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 88.10%. Comparing base (83d0e41) to head (2e54740).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1321   +/-   ##
=======================================
  Coverage   88.10%   88.10%           
=======================================
  Files          67       67           
  Lines       11608    11608           
=======================================
  Hits        10227    10227           
  Misses       1381     1381           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@pamburus pamburus marked this pull request as ready for review February 12, 2026 07:54
@pamburus pamburus merged commit 873a6a0 into master Feb 12, 2026
13 checks passed
@pamburus pamburus deleted the issue/1319 branch February 12, 2026 07:54
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.

[Feature]: Date-time rendering

1 participant