Full Changelog: https://github.com/kataras/golog/compare/v0.1.11...v0.1.12
Published by kataras 12 months ago
Full Changelog: https://github.com/kataras/golog/compare/v0.1.8...v0.1.11
Published by kataras over 1 year ago
Full Changelog: https://github.com/kataras/golog/compare/v0.1.8...v0.1.9
Published by kataras almost 2 years ago
Full Changelog: https://github.com/kataras/golog/compare/v0.1.7...v0.1.8
Published by kataras over 3 years ago
Minor version
Published by kataras almost 4 years ago
Fix Clone
not inherite the parent's formatters field (fixes SetLevelFormat
on childs).
Published by kataras about 4 years ago
Introduce the Formatter interface. Example.
Logger.RegisterFormatter(Formatter)
to register a custom Formatter
.Logger.SetFormat(formatter string, opts ...interface{})
to set the default formatter for all log levels.Logger.SetLevelFormat(levelName string, formatter string, opts ...interface{})
to change the output format for the given "levelName".golog.JSON
handler, introduced 12 hours ago, as it's now useless.Published by kataras about 4 years ago
Logger.SetLevelOutput(levelName string, w io.Writer)
to customize the writer per level. (v0.1.3)Logger.GetLevelOutput(levelName string) io.Writer
to get the leveled output or the default one.JSON(indent string) Handler
as a helper for JSON format: Logger.Handle(golog.JSON(" "))
.Published by kataras about 4 years ago
Add SetLevelOutput(level string, w io.Writer)
to customize writer per level.
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).
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, then it's used as prefix (like always did).Published by kataras about 4 years ago
Go get failed on 0.0.19 let's try this release instead.
Published by kataras about 4 years ago
Published by kataras over 4 years ago
Published by kataras over 4 years ago
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
).Log.Stacktrace
of new Frame
type which holds the callers stack trace when Debug/Debugf
.json
struct fields to the Log
structure.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
Published by kataras over 4 years ago
Update pio dependency, see release notes for v0.0.12 too.
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.
Published by kataras almost 5 years ago
Published by kataras about 5 years ago
NewLine
on Clone
method which golog
makes use inside its Child("...")
method.