add logger to all packages

This commit is contained in:
Balakrishnan Balasubramanian 2022-06-20 16:13:06 -04:00
parent 7177fe8211
commit 3c147b3e4c
1 changed files with 5 additions and 0 deletions

View File

@ -4,13 +4,18 @@ import (
"flag"
"go.balki.me/tss/app"
"go.balki.me/tss/db"
"go.balki.me/tss/log"
"go.balki.me/tss/schedule"
"go.balki.me/tss/telegram"
)
func main() {
logger := log.GetZapLogger()
db.SetLogger(logger.WithName("db"))
schedule.SetLogger(logger.WithName("schedule"))
telegram.SetLogger(logger.WithName("telegram"))
app.SetLogger(logger.WithName("app"))
var configPath string