Documentation ¶
Index ¶
- Variables
- func FormatGinRouter(log Log) string
- func FormatGorm(log Log) string
- func Formatter(log Log) string
- func Groups(groups []Group, prefix, mapKey string) *strings.Builder
- func Level(level string) string
- func Map(data Data, prefix, mapKey string, parseDepth int) *strings.Builder
- func Pid(pid int) string
- func Time(ts time.Time) string
- type Data
- type Group
- type Log
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TagTrace = color.Bold(color.Cyan("trace")) TagDebug = color.Bold(color.Blue("debug")) TagInfo = color.Bold(color.Green(" info")) TagWarn = color.Bold(color.Yellow(" warn")) TagError = color.Bold(color.Magenta("error")) TagFatal = color.Bold(color.Red("fatal")) TagPanic = color.Bold(color.Red("panic")) )
Functions ¶
func FormatGinRouter ¶
func FormatGorm ¶ added in v0.0.2
Types ¶
Click to show internal directories.
Click to hide internal directories.