[#1619] logger: Set tags for node components

Change-Id: I55ffcce9d2a74fdd47621674739b07f2e20199e3
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
Anton Nikiforov 2025-01-29 15:39:28 +03:00
parent 36fb15b9a4
commit 100eb8b654
37 changed files with 151 additions and 77 deletions

View file

@ -63,10 +63,15 @@ func initConfig(c *cfg) {
}
}
func WithLogger(l *logger.Logger) Option {
func WithBlobovniczaTreeLogger(log *logger.Logger) Option {
return func(c *cfg) {
c.log = l
c.blzOpts = append(c.blzOpts, blobovnicza.WithLogger(l))
c.log = log
}
}
func WithBlobovniczaLogger(log *logger.Logger) Option {
return func(c *cfg) {
c.blzOpts = append(c.blzOpts, blobovnicza.WithLogger(log))
}
}