Skip to content

Commit

Permalink
update logging
Browse files Browse the repository at this point in the history
  • Loading branch information
dylanmazurek committed Jan 17, 2024
1 parent 5107691 commit 4355a84
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions cmd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ import (
"encoding/json"
"os"
"os/signal"
"runtime/debug"
"syscall"
"time"

"github.com/dylanmazurek/lunchmoney/handlers"
"github.com/dylanmazurek/lunchmoney/shared"
Expand All @@ -18,15 +16,11 @@ import (
func main() {
ctx := context.Background()

buildInfo, _ := debug.ReadBuildInfo()

logger := zerolog.New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: time.RFC3339}).
logger := zerolog.New(zerolog.ConsoleWriter{Out: os.Stderr, TimeFormat: "15:04:05 01-02"}).
Level(zerolog.TraceLevel).
With().
Timestamp().
Caller().
Int("pid", os.Getpid()).
Str("go_version", buildInfo.GoVersion).
Logger()

log.Logger = logger
Expand Down

0 comments on commit 4355a84

Please sign in to comment.