✨ Use dot as folder separator
Also don't add dot if no extension
This commit is contained in:
parent
0687671c7d
commit
a61af1b4b3
4 changed files with 74 additions and 4 deletions
|
|
@ -17,6 +17,8 @@ path = "%s"
|
|||
ext = "txt"
|
||||
# Whether to look in sub-folders
|
||||
recurse = true
|
||||
# Whether to use a dot as a folder separator in log names
|
||||
dotFolder = true
|
||||
|
||||
# config for output types
|
||||
[output]
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@ type Config struct {
|
|||
}
|
||||
|
||||
type Input struct {
|
||||
Path string `env:"LOG_PATH"`
|
||||
Recurse bool `env:"LOG_RECURSE"`
|
||||
Ext string `env:"LOG_EXT"`
|
||||
Path string `env:"LOG_PATH"`
|
||||
Recurse bool `env:"LOG_RECURSE"`
|
||||
Ext string `env:"LOG_EXT"`
|
||||
DotFolder bool `env:"LOG_DOT_FOLDER"`
|
||||
}
|
||||
|
||||
type Outputs map[string]Output
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue