• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

DeRuina / timberjack / 16319518354
88%

Build:
DEFAULT BRANCH: main
Ran 16 Jul 2025 12:32PM UTC
Jobs 1
Files 2
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

16 Jul 2025 12:31PM UTC coverage: 87.201% (+1.0%) from 86.207%
16319518354

push

github

web-flow
feat: Rotation Suffix Time Format

* Rotation Suffix Time Format

Added RotationFileSuffixTimeFormat field to Logger

default: 2006-01-02T15-04-05.000

It used for naming the rotated log files. If not set, then default value is used.

Added functions to count the precision of the layout passed and test the validity of the supplied layout.
If the layout supplied is not valid then default is used

* Validation Flag and comment fix.

added flag to prevent multiple validation checks

* feat(rotation): Custom Time Format for a rotated file

Added RotationFileSuffixTimeFormat field to Logger

default: 2006-01-02T15-04-05.000

Using this feature, you can now set up your own time-format that'll be
used as suffix of a rotated file.

* feat!(rotation file name): BackupTimeFormat is now required

BREAKING CHANGE: `BackupTimeFormat` field is now required for Logger
instance to work. Returns error if invalid value is passed.

* feat(rotate): Optional field for backup timeformat is added.

When rotating, if a valid `BackupTimeFormat` is configured then it is
used.
Otherwise, we silently fall back to using default timeformat : `2006-01-02T15-04-05.000`

* fix: removed unused functions

* fix: Code style consistency changes

1. Added log to Stderr after fallback to default time format
2. `timeFromName` function uses supplied format and fallbacks to default
   if no provided

---------

Co-authored-by: Dean Ruina <81315494+DeRuina@users.noreply.github.com>

64 of 68 new or added lines in 1 file covered. (94.12%)

2 existing lines in 1 file now uncovered.

511 of 586 relevant lines covered (87.2%)

21.91 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
4
86.89
1.06% timberjack.go

Uncovered Existing Lines

Lines Coverage ∆ File
2
86.89
1.06% timberjack.go
Jobs
ID Job ID Ran Files Coverage
1 16319518354.1 16 Jul 2025 12:32PM UTC 2
87.2
GitHub Action Run
Source Files on build 16319518354
  • Tree
  • List 2
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • e2c22115 on github
  • Prev Build on main (#15683533328)
  • Next Build on main (#16319577348)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc