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".
Su 06 September | v0.1.3 and v0.1.4
Add Logger.SetLevelOutput(levelName string, w io.Writer) to customize the writer per level.
Add Logger.GetLevelOutput(levelName string) io.Writer to get the leveled output or the default one.
Sa 15 August | v0.1.2
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).
Fr 14 August 2020 | v0.0.19
Use locks on hijacker.
Tu 09 June 2020 | v0.0.18
New SetStacktraceLimit method. If 0 (default) all debug stacktrace will be logged, if negative the field is disabled.
If TimeFormat field is empty then timestamp field is disabled.
Sa 06 June 2020 | v0.0.16
New Fields 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 a Warningf method to complete the dgraph-io/badger.Logger interface and set the Prefix text right before the log's actual message instead of the beginning of the log line.
Tu 28 April 2020 | v0.0.12
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.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps github.com/kataras/golog from 0.1.7 to 0.1.8.
Release notes
Sourced from github.com/kataras/golog's releases.
Changelog
Sourced from github.com/kataras/golog's changelog.
... (truncated)
Commits
cab8303
release v0.1.8350ad62
Bump github.com/kataras/pio from 0.0.10 to 0.0.11 (#23)5ca7ba3
add dependabote7f3c5b
minor3ddf6ad
Merge pull request #9 from JayceChant/patch-1687b2b8
Merge branch 'master' into patch-1bcb4cee
Merge pull request #8 from codenamoo/getnameforlevelDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)