my-log/config/types.go

29 lines
503 B
Go
Raw Normal View History

package config
type Config struct {
Input Input
2024-02-09 09:44:35 -06:00
Outputs Outputs `toml:"output"`
}
type Input struct {
Path string `env:"LOG_PATH"`
Recurse bool `env:"LOG_RECURSE"`
Ext string `env:"LOG_EXT"`
DotFolder bool `env:"LOG_DOT_FOLDER"`
}
2024-02-09 09:44:35 -06:00
type Outputs map[string]Output
type Output struct {
Enabled bool
Config map[string]any
}
2024-02-09 09:44:35 -06:00
type Stdout struct {
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
}