mirror of
https://github.com/arangodb/kube-arangodb.git
synced 2024-12-14 11:57:37 +00:00
[Feature] Set Logger format (#1031)
This commit is contained in:
parent
db986e2b0f
commit
55ac6e4cd8
2 changed files with 12 additions and 2 deletions
|
@ -22,6 +22,7 @@
|
|||
- (Bugfix) Allow missing `token` key in License secret
|
||||
- (Feature) Unify agency access
|
||||
- (Feature) Change DBServer Cleanup Logic
|
||||
- (Feature) Set Logger format
|
||||
|
||||
## [1.2.13](https://github.com/arangodb/kube-arangodb/tree/1.2.13) (2022-06-07)
|
||||
- (Bugfix) Fix arangosync members state inspection
|
||||
|
|
|
@ -20,9 +20,18 @@
|
|||
|
||||
package logging
|
||||
|
||||
import "github.com/rs/zerolog/log"
|
||||
import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
var global = NewFactory(log.Logger)
|
||||
"github.com/rs/zerolog"
|
||||
)
|
||||
|
||||
var global = NewFactory(zerolog.New(zerolog.ConsoleWriter{
|
||||
Out: os.Stdout,
|
||||
TimeFormat: time.RFC3339Nano,
|
||||
NoColor: true,
|
||||
}).With().Timestamp().Logger())
|
||||
|
||||
func Global() Factory {
|
||||
return global
|
||||
|
|
Loading…
Reference in a new issue