From 9fb56b8643f96344b4415c13022b7241e067578d Mon Sep 17 00:00:00 2001 From: Robin Olsen Date: Mon, 2 Mar 2026 23:07:50 +0100 Subject: [PATCH] add metrics logger to config --- internal/models/config.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/internal/models/config.go b/internal/models/config.go index c5a6ce5..48a7f62 100644 --- a/internal/models/config.go +++ b/internal/models/config.go @@ -7,6 +7,7 @@ type Config struct { BeadsDBPath string IssuePrefix string StatisticsStoragePath string + ActionLogger func(string) } var BaseConfig = Config{ @@ -47,3 +48,8 @@ func (c Config) WithStatisticsStoragePath(path string) Config { c.StatisticsStoragePath = path return c } + +func (c Config) WithActionLogger(logger func(string)) Config { + c.ActionLogger = logger + return c +}