Skip to content

v0.1.5

Compare
Choose a tag to compare
@kataras kataras released this 06 Sep 22:03
· 23 commits to master since this release

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.