Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 11 additions & 2 deletions pkg/logging/global.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down