summaryrefslogtreecommitdiff
path: root/common/logger.go
diff options
context:
space:
mode:
authorMatthieuCoder <matthieu@matthieu-dev.xyz>2022-12-31 17:07:30 +0400
committerMatthieuCoder <matthieu@matthieu-dev.xyz>2022-12-31 17:07:30 +0400
commit65652932f77ce194a10cbc8dd42f3064e2c1a132 (patch)
tree4ca18a9317c4e561e917e9dd0cf39b695b43bc34 /common/logger.go
parenta16bafdf5b0ec52fa0d73458597eee7c34ea5e7b (diff)
updates and bazel removal
Diffstat (limited to 'common/logger.go')
-rw-r--r--common/logger.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/common/logger.go b/common/logger.go
deleted file mode 100644
index 32f02eb..0000000
--- a/common/logger.go
+++ /dev/null
@@ -1,25 +0,0 @@
-package common
-
-import (
- "flag"
- "os"
-
- "github.com/rs/zerolog"
- "github.com/rs/zerolog/log"
-)
-
-var (
- debug *bool = flag.Bool("debug", false, "enables the debug mode")
- pretty *bool = flag.Bool("pretty", false, "enables the pretty log messages")
-)
-
-func SetupLogger() {
- if *pretty {
- log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
- }
- zerolog.TimeFieldFormat = zerolog.TimeFormatUnix
- zerolog.SetGlobalLevel(zerolog.InfoLevel)
- if *debug {
- zerolog.SetGlobalLevel(zerolog.DebugLevel)
- }
-}