{"repo":"lmittmann/tint","free":true,"listed":false,"github":"https://github.com/lmittmann/tint","clone":"git clone https://github.com/lmittmann/tint.git","description":"🌈 slog.Handler that writes tinted (colorized) logs","language":"Go","stars":1337,"topics":["golang","logging","slog","ansi","color"],"license":"MIT","category":"analytics","readme_excerpt":"tint : 🌈 slog.Handler that writes tinted logs Package tint implements a zero-dependency slog.Handler that writes tinted (colorized) logs. Its 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 . Usage Customize Attributes 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. Automatically Enable Colors Colors are enabled by default. Use the Options.NoColor field to disable color output. To automatically enable colors based on terminal capabilities, use e.g., the go-isatty package: Windows Support Color support on Windows can be added by using e.g., the go-colorable package:","default_branch":null,"files":null,"tree":[],"storefront":"/r/lmittmann","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/lmittmann/tint/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}