add metrics logger to config
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user