add logger to all packages
This commit is contained in:
parent
7177fe8211
commit
3c147b3e4c
5
main.go
5
main.go
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user