add metrics logger to config
This commit is contained in:
@@ -7,6 +7,7 @@ type Config struct {
|
|||||||
BeadsDBPath string
|
BeadsDBPath string
|
||||||
IssuePrefix string
|
IssuePrefix string
|
||||||
StatisticsStoragePath string
|
StatisticsStoragePath string
|
||||||
|
ActionLogger func(string)
|
||||||
}
|
}
|
||||||
|
|
||||||
var BaseConfig = Config{
|
var BaseConfig = Config{
|
||||||
@@ -47,3 +48,8 @@ func (c Config) WithStatisticsStoragePath(path string) Config {
|
|||||||
c.StatisticsStoragePath = path
|
c.StatisticsStoragePath = path
|
||||||
return c
|
return c
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c Config) WithActionLogger(logger func(string)) Config {
|
||||||
|
c.ActionLogger = logger
|
||||||
|
return c
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user