golog

A high-performant Logging Foundation for Go Applications. X3 faster than the rest leveled loggers.

BSD-3-CLAUSE License

Stars
329
Committers
6
golog - v0.1.12 Latest Release

Published by kataras 6 months ago

golog - v0.1.11

Published by kataras 12 months ago

golog - v0.1.9

Published by kataras over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/kataras/golog/compare/v0.1.8...v0.1.9

golog - v0.1.8

Published by kataras almost 2 years ago

What's Changed

New Contributors

Full Changelog: https://github.com/kataras/golog/compare/v0.1.7...v0.1.8

golog - v0.1.7

Published by kataras over 3 years ago

Minor version

golog - v0.1.6

Published by kataras almost 4 years ago

Wed 09 Decemember | v0.1.6

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

golog - v0.1.5

Published by kataras about 4 years ago

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.
golog - v0.1.4

Published by kataras about 4 years ago

  • 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(" ")).
golog - v0.1.3

Published by kataras about 4 years ago

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

golog - v0.1.2

Published by kataras about 4 years ago

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).

golog - v0.1.1

Published by kataras about 4 years ago

Sa 15 August | v0.1.1

  • 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, then it's used as prefix (like always did).
golog - v0.1.0

Published by kataras about 4 years ago

Go get failed on 0.0.19 let's try this release instead.

golog - v0.0.19

Published by kataras about 4 years ago

golog - v0.0.18

Published by kataras over 4 years ago

golog - v0.0.16

Published by kataras over 4 years ago

Sa 06 June 2020 | v0.0.16

  • New Fields map type that can be passed to Logf/Debugf/Infof/Warnf/Errorf/Fatalf functions and set the Log.Fields data field (which can be retrieved through a custom LogHandler).
  • Add Log.Stacktrace of new Frame type which holds the callers stack trace when Debug/Debugf.
  • Add json struct fields to the Log structure.
  • Update the customize-output example.
golog - v0.0.15

Published by kataras over 4 years ago

Same as v0.0.14 (refreshed for modules caching), read the following link for changes: https://github.com/kataras/golog/blob/master/HISTORY.md#su-17-may-2020--v0014

golog - v0.0.13

Published by kataras over 4 years ago

Update pio dependency, see release notes for v0.0.12 too.

golog - v0.0.12

Published by kataras over 4 years ago

This release provides support for colorized log level per registered output. Log's level will be colorful for registered io.Writer(via AddOutput) that supports colors, even when the rest of the writers (e.g. files) don't.

Breaking changes on the Levels map. See the corresponding updated example for migration.

golog - v0.0.10

Published by kataras almost 5 years ago

  • Update pio dependency to version 0.0.2 as it contains a small but important bugfix for GUI apps.
golog - v0.0.9

Published by kataras about 5 years ago

  • Set the Logger's NewLine on Clone method which golog makes use inside its Child("...") method.
  • Go module (v0.0.9).