0
/ 100
Polished and well engineered. Punching above its star count.
📑 Lightweight, configurable, extensible logging library written in Go. Support multi level, multi outputs and built-in multi file logger, buffers, clean, rotate-file handling.一个易于使用的,轻量级、可配置、可扩展的日志库。支持多个级别,输出到多文件;内置文件日志处理、自动切割、清理、压缩等增强功能
Top fixes
Highest-impact changes first, ranked by point weight
- 1CI/CD14pt
Add a lint step to catch style issues automatically.
- 2CI/CD14pt
Add `tsc --noEmit`, `mypy`, or `cargo check` to catch type errors before they merge.
- 3Install and run instructions9pt
Add a .env.example listing all required environment variables so contributors know what to set up.
- 4Reproducibility6pt
Add a Dockerfile, .nvmrc, or .python-version to pin the runtime version and make the environment reproducible.
Working through the fixes? Let every push regrade itself.
The free GitHub App rescans this repo on every push and posts the grade as a commit check, so the score climbs without coming back to rescan by hand.
Scorecard
Every check, grouped by category and sorted worst-first
Documentation
82
No CONTRIBUTING.md found (−47 pts base + up to −53 pts more for content).
→ Add a CONTRIBUTING.md telling newcomers how to get involved. Include setup, code style, test, and PR instructions.
README documents how to install the project.
README is present.
Licensed under MIT.
Engineering
95
CI is configured (.github/workflows/go.yml).
Lockfile present (go.sum). Installs are reproducible.
Test files detected (_example/bench_loglibs_test.go).
Formatting enforced (gofmt (built into Go toolchain)).
Issue or PR templates present.
Project health
100
Dependency manifest found (go.mod).
Repository has a description.
Actively maintained (pushed within the last month).
.gitignore present.
Repository health signals
Activity, community, and responsiveness at scan time
Activity
- -Commits (30d / 90d)
- 33Forks
- 31Releaseslatest 5y ago
Community
- -Community health
- -authors own >50% of commits
- 546Watchers
Responsiveness
- 4hMedian issue response
- 5hMedian PR merge time
- 1Open issues
Repository files43 root entries
- _exampleGood: Test files detected (_example/bench_loglibs_test.go).
- .githubGood: CI is configured (.github/workflows/go.yml).Good: Dependabot covers 2 ecosystems (gomod, github-actions). Dependencies stay current.Good: Issue or PR templates present.
- bufwrite
- docs
- handler
- internal
- rotatefile
- testdata
- .gitignoreGood: .gitignore present.
- benchmark_test.go
- benchmark2_test.go
- common_test.go
- common.go
- example_test.go
- formatter_caller_test.go
- formatter_json.go
- formatter_race_test.go
- formatter_test.go
- formatter_text.go
- formatter.go
- go.modGood: Dependency manifest found (go.mod).
- go.sumGood: Lockfile present (go.sum). Installs are reproducible.
- handler_test.go
- handler.go
- issues_test.go
- LICENSEGood: Licensed under MIT.
- logger_levelgate_test.go
- logger_sub.go
- logger_test.go
- logger_write.go
- logger.go
- Makefile
- processor_test.go
- processor.go
- README.mdGood: README is present.Good: README is well structured with multiple sections.Good: README includes screenshots or visuals. Great for first impressions.Good: README has code examples.Good: README links to a live demo or deployed app.Good: README includes status badges.Good: README documents how to install the project.Good: README documents how to run the project.
- README.zh-CN.md
- record_test.go
- record.go
- slog_test.go
- slog.go
- sugared.go
- util_test.go
- util.go
Add this badge to your README
It updates automatically each time the repo is re-graded.
[](https://www.repo-grade.com/report/gookit/slog)