charmbracelet / log

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

feat: parse level from string #11

Closed gozeloglu closed 1 year ago

gozeloglu commented 1 year ago

With this PR, ParseLevel function is added. It converts the level in string type to Level type. Default level is set to INFO level.

aymanbagabas commented 1 year ago

@gozeloglu could you squash the commits into a single one? feat(level): parse level from string

gozeloglu commented 1 year ago

@gozeloglu could you squash the commits into a single one? feat(level): parse level from string

Cannot you squash the commit when you merge the PR? I think it is possible. If I have to do that, I need to search a little bit. I don't know the command(s) for squashing the commits.

codecov[bot] commented 1 year ago

Codecov Report

Merging #11 (72bc69e) into main (6e4f0e1) will increase coverage by 0.37%. The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
+ Coverage   51.02%   51.40%   +0.37%     
==========================================
  Files          22       23       +1     
  Lines         684      714      +30     
==========================================
+ Hits          349      367      +18     
- Misses        319      331      +12     
  Partials       16       16              
Impacted Files Coverage Δ
level.go 92.85% <100.00%> (+35.71%) :arrow_up:
text.go 45.93% <0.00%> (-0.82%) :arrow_down:
styles.go 0.00% <0.00%> (ø)
examples/app/main.go
examples/styles/styles.go 0.00% <0.00%> (ø)
examples/app/app.go 0.00% <0.00%> (ø)

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

gozeloglu commented 1 year ago

just need to update the PR description, other than that, LGTM!

Thanks 🙏

I updated it. Thanks.