An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 3.0% on proxy.golang.org
Top 0.5% dependent packages on proxy.golang.org
Top 4.7% dependent repos on proxy.golang.org
Top 5.9% forks on proxy.golang.org
Top 0.7% docker downloads on proxy.golang.org

proxy.golang.org : github.com/lmittmann/tint

Package tint implements a zero-dependency slog.Handler that writes tinted (colorized) logs. The output format is inspired by the zerolog.ConsoleWriter and slog.TextHandler. The output format can be customized using Options, which is a drop-in replacement for slog.HandlerOptions. Options.ReplaceAttr can be used to alter or drop attributes. If set, it is called on each non-group attribute before it is logged. See slog.HandlerOptions for details. Create a new logger that doesn't write the time: Create a new logger that writes all errors in red: Colors are enabled by default and can be disabled using the Options.NoColor attribute. To automatically enable colors based on the terminal capabilities, use e.g. the go-isatty package. Color support on Windows can be added by using e.g. the go-colorable package.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/lmittmann/tint
Keywords: ansi , color , golang , logging , slog
License: MIT
Latest release: 19 days ago
First release: about 2 years ago
Namespace: github.com/lmittmann
Dependent packages: 92
Dependent repositories: 1
Stars: 858 on GitHub
Forks: 43 on GitHub
Docker dependents: 7
Docker downloads: 440,643,912
See more repository details: repos.ecosyste.ms
Last synced: 8 days ago

    Loading...
    Readme
    Loading...