Basic functionality

This commit is contained in:
2024-10-04 13:15:07 +03:00
parent eb963542b7
commit 74be6b4d0d
7 changed files with 373 additions and 0 deletions

18
logging.go Normal file
View File

@@ -0,0 +1,18 @@
package main
import (
"fmt"
zlog "github.com/rs/zerolog/log"
)
func LogDebug(format string, args ...interface{}) {
zlog.Debug().Msg(fmt.Sprintf(format, args...))
}
func LogInfo(format string, args ...interface{}) {
zlog.Info().Msg(fmt.Sprintf(format, args...))
}
func LogError(format string, args ...interface{}) {
zlog.Error().Err(fmt.Errorf(format, args...)).Msg("")
}