Compare commits
1 Commits
v0.5.2
...
2628202ff1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2628202ff1 |
@@ -10,7 +10,7 @@ import (
|
|||||||
|
|
||||||
//nolint:gochecknoglobals
|
//nolint:gochecknoglobals
|
||||||
var global = With(New(),
|
var global = With(New(),
|
||||||
WithSource(2),
|
WithSource(1),
|
||||||
WithLevel(KeyLevel, level.Debug),
|
WithLevel(KeyLevel, level.Debug),
|
||||||
WithExit(level.Alert),
|
WithExit(level.Alert),
|
||||||
WithPanic(level.Emergency),
|
WithPanic(level.Emergency),
|
||||||
|
|||||||
@@ -62,7 +62,7 @@ type option struct {
|
|||||||
func New(opts ...func(*option)) Logger {
|
func New(opts ...func(*option)) Logger {
|
||||||
log := option{
|
log := option{
|
||||||
format: formatText(),
|
format: formatText(),
|
||||||
out: os.Stderr,
|
out: os.Stdout,
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, opt := range opts {
|
for _, opt := range opts {
|
||||||
|
|||||||
Reference in New Issue
Block a user