Skip to content

Releases: kataras/golog

v0.1.12

24 Apr 14:04
f011779
Compare
Choose a tag to compare

v0.1.11

01 Nov 18:36
Compare
Choose a tag to compare

Full Changelog: v0.1.8...v0.1.11

v0.1.9

24 Jun 20:21
74c7c01
Compare
Choose a tag to compare

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

Full Changelog: v0.1.8...v0.1.9

v0.1.8

29 Oct 19:06
cab8303
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v0.1.7...v0.1.8

v0.1.7

13 Feb 08:24
Compare
Choose a tag to compare

Minor version

v0.1.6

09 Dec 05:33
Compare
Choose a tag to compare

Wed 09 Decemember | v0.1.6

Fix Clone not inherite the parent's formatters field (fixes SetLevelFormat on childs).

v0.1.5

06 Sep 22:03
Compare
Choose a tag to compare

Introduce the Formatter interface. Example.

  • Add Logger.RegisterFormatter(Formatter) to register a custom Formatter.
  • 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

06 Sep 10:04
Compare
Choose a tag to compare
  • 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(" ")).

v0.1.3

06 Sep 09:05
Compare
Choose a tag to compare

Add SetLevelOutput(level string, w io.Writer) to customize writer per level.

v0.1.2

15 Aug 21:15
Compare
Choose a tag to compare

Logger.Child accepts an interface{} instead of string. This way you can register children for pointers without forcing to naming them. If the key is string or completes the fmt.Stringer interface, then it's used as prefix (like always did).