{"repo":"m-mizutani/clog","free":true,"listed":false,"github":"https://github.com/m-mizutani/clog","clone":"git clone https://github.com/m-mizutani/clog.git","description":"Customizable Go slog Handler","language":"Go","stars":28,"topics":["go","golang","logging"],"license":"Apache-2.0","category":"analytics","readme_excerpt":"clog Customizable slog.Handler for console. Options - WithWriter : Output writer. Default is os.Stdout . - WithLevel : Log level. Default is slog.LevelInfo . - WithTimeFmt : Time format string. Default is 15:04:05.000 . - WithColor : Enable colorized output. Default will be changed by terminal's color support. - WithColorMap : Color map for each log level. Default is clog.DefaultColorMap . See ColorMap section for more detail. - WithSource : Enable source code location. Default is false. - WithReplaceAttr : Replace attribute value. It's same with slog.ReplaceAttr in slog.HandlerOptions . - WithTemplate : Template string. See Template section for more detail. - WithAttrPrinter : Attribute printer. Default is clog.LinearPrinter . See AttrPrinter section for more detail. - WithLevelFormatter : Custom function to format log level strings. Default uses level.String() . ColorMap You can customize color map for each handler with clog.ColorMap . Default is clog.DefaultColorMap . If the fields is nil or not set, default color will be used. - LogLevel : You can set color for each log level. If not set, default color LogLevelDefault will be used. - LogLevelDefault : Default color for log level. - Time : Color for time string. - Message : Color for log message string. - AttrKey : Color for attribute key string. It's applied or not depends on AttrPrinter. - AttrValue : Color for attribute value string. It's applied or not depends on AttrPrinter. Template Template can be used to customize ","default_branch":null,"files":null,"tree":[],"storefront":"/r/m-mizutani","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/m-mizutani/clog/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."}