charmbracelet / log

A minimal, colorful Go logging library 🪵
MIT License
2.4k stars 67 forks source link

feat(log): add callerFormat to set short/long file location #34

Closed aymanbagabas closed 1 year ago

aymanbagabas commented 1 year ago

Fixes: https://github.com/charmbracelet/log/issues/22

codecov[bot] commented 1 year ago

Codecov Report

Merging #34 (e96dfad) into main (b6dcc9b) will decrease coverage by 7.57%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #34      +/-   ##
==========================================
- Coverage   66.66%   59.09%   -7.57%     
==========================================
  Files          12       23      +11     
  Lines         627      753     +126     
==========================================
+ Hits          418      445      +27     
- Misses        192      291      +99     
  Partials       17       17              
Impacted Files Coverage Δ
logger.go 0.00% <ø> (ø)
options.go 70.00% <100.00%> (+3.33%) :arrow_up:
pkg.go 56.81% <100.00%> (+11.58%) :arrow_up:
examples/chocolate-chips/chocolate-chips.go 0.00% <0.00%> (ø)
examples/temperature/temperature.go 0.00% <0.00%> (ø)
examples/oven/oven.go 0.00% <0.00%> (ø)
examples/app/app.go 0.00% <0.00%> (ø)
examples/styles/styles.go 0.00% <0.00%> (ø)
examples/format/format.go 0.00% <0.00%> (ø)
examples/error/error.go 0.00% <0.00%> (ø)
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.