Releases: kataras/golog
Releases · kataras/golog
v0.1.12
v0.1.11
Full Changelog: v0.1.8...v0.1.11
v0.1.9
What's Changed
- Update dependencies and pio
- Print Log.Fields to the raw printer as well
- Fix BUG for:level format by @Fly-Playgroud in #24
New Contributors
- @Fly-Playgroud made their first contribution in #24
Full Changelog: v0.1.8...v0.1.9
v0.1.8
What's Changed
- Add func for GetNameForLevel by @codenamoo in #8
- copy NewLine value as well when clone logger by @JayceChant in #9
- Bump github.com/kataras/pio from 0.0.10 to 0.0.11 by @dependabot in #23
New Contributors
- @codenamoo made their first contribution in #8
- @JayceChant made their first contribution in #9
- @dependabot made their first contribution in #23
Full Changelog: v0.1.7...v0.1.8
v0.1.7
v0.1.6
v0.1.5
Introduce the Formatter interface. Example.
- Add
Logger.RegisterFormatter(Formatter)
to register a customFormatter
. - Add
Logger.SetFormat(formatter string, opts ...interface{})
to set the default formatter for all log levels. - Add
Logger.SetLevelFormat(levelName string, formatter string, opts ...interface{})
to change the output format for the given "levelName". - Remove the
golog.JSON
handler, introduced 12 hours ago, as it's now useless.
v0.1.4
- Add
Logger.SetLevelOutput(levelName string, w io.Writer)
to customize the writer per level. (v0.1.3) - Add
Logger.GetLevelOutput(levelName string) io.Writer
to get the leveled output or the default one. - Add
JSON(indent string) Handler
as a helper for JSON format:Logger.Handle(golog.JSON(" "))
.