feat: add zerolog logger

This commit is contained in:
2024-10-22 16:03:20 +05:30
parent b4eb561e1f
commit 23e1b99728
4 changed files with 39 additions and 4 deletions

View File

@ -5,9 +5,9 @@ Copyright © 2024 tux <0xtux@pm.me>
package server
import (
"log"
"github.com/rs/zerolog/log"
)
func Start(port uint16) {
log.Printf("Hello from server: %d", port)
log.Info().Msgf("Hello from server: %d", port)
}