1
0
Fork 0
mirror of https://github.com/arangodb/kube-arangodb.git synced 2024-12-15 17:51:03 +00:00

[Feature] Set Logger format (#1031)

This commit is contained in:
Adam Janikowski 2022-06-24 16:44:03 +02:00 committed by GitHub
parent db986e2b0f
commit 55ac6e4cd8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 2 deletions

View file

@ -22,6 +22,7 @@
- (Bugfix) Allow missing `token` key in License secret - (Bugfix) Allow missing `token` key in License secret
- (Feature) Unify agency access - (Feature) Unify agency access
- (Feature) Change DBServer Cleanup Logic - (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) ## [1.2.13](https://github.com/arangodb/kube-arangodb/tree/1.2.13) (2022-06-07)
- (Bugfix) Fix arangosync members state inspection - (Bugfix) Fix arangosync members state inspection

View file

@ -20,9 +20,18 @@
package logging 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 { func Global() Factory {
return global return global