Skip to content

Commit

Permalink
Logging config
Browse files Browse the repository at this point in the history
  • Loading branch information
cmyui committed Aug 1, 2024
1 parent 60b84fb commit ec4cf32
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package main
import (
"fmt"
"log"
"os"
"syscall"

"golang.org/x/exp/slog"
Expand All @@ -23,6 +24,10 @@ func init() {
}

func main() {
logger := slog.New(slog.NewJSONHandler(os.Stdout, nil))

slog.SetDefault(logger)

slog.Info("Akatsuki API")

settings := common.LoadSettings()
Expand Down

0 comments on commit ec4cf32

Please sign in to comment.