2024-02-04 18:19:19 -06:00
|
|
|
package config
|
|
|
|
|
|
|
|
|
|
type Config struct {
|
|
|
|
|
Input Input
|
2024-02-09 09:44:35 -06:00
|
|
|
Outputs Outputs `toml:"output"`
|
2024-02-04 18:19:19 -06:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type Input struct {
|
2024-02-26 19:30:32 -06:00
|
|
|
Path string `env:"LOG_PATH"`
|
|
|
|
|
Recurse bool `env:"LOG_RECURSE"`
|
|
|
|
|
Ext string `env:"LOG_EXT"`
|
|
|
|
|
DotFolder bool `env:"LOG_DOT_FOLDER"`
|
2024-02-04 18:19:19 -06:00
|
|
|
}
|
|
|
|
|
|
2024-02-09 09:44:35 -06:00
|
|
|
type Outputs map[string]Output
|
|
|
|
|
|
2024-02-04 18:19:19 -06:00
|
|
|
type Output struct {
|
|
|
|
|
Enabled bool
|
|
|
|
|
Config map[string]any
|
|
|
|
|
}
|
2024-02-09 09:44:35 -06:00
|
|
|
|
|
|
|
|
type Stdout struct {
|
2024-02-10 11:48:23 -06:00
|
|
|
Json bool `env:"LOG_STDOUT_JSON" mapstructure:"json"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type stdoutEnabled struct {
|
|
|
|
|
Enabled bool `env:"LOG_STDOUT_ENABLED"`
|
2024-02-09 09:44:35 -06:00
|
|
|
}
|