new: zerolog beautiful output

This commit is contained in:
upong 2023-04-03 21:17:50 +02:00
parent 05de71a2d6
commit eb137a49b7

View File

@ -10,10 +10,13 @@ import (
"github.com/go-co-op/gocron" "github.com/go-co-op/gocron"
"github.com/joho/godotenv" "github.com/joho/godotenv"
"github.com/rs/zerolog"
"github.com/rs/zerolog/log" "github.com/rs/zerolog/log"
) )
func main() { func main() {
log.Logger = log.Output(zerolog.ConsoleWriter{Out: os.Stderr})
godotenv.Load() //nolint:errcheck godotenv.Load() //nolint:errcheck
wallets := strings.Split(os.Getenv("ADDRESS"), ",") wallets := strings.Split(os.Getenv("ADDRESS"), ",")