Skip to content

Commit 71dba0e

Browse files
committed
add toml tags for unmarshal
1 parent 6150719 commit 71dba0e

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

logger.go

+10-10
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ import (
99

1010
//LogConfig is a configuration for logger
1111
type LogConfig struct {
12-
Title string `yaml:"title" json:"title"`
13-
Type string `yaml:"type" json:"type"`
14-
NetworkType string `yaml:"network type" json:"network type"`
15-
Host string `yaml:"host" json:"host"`
16-
Severity string `yaml:"severity" json:"severity"`
17-
Facility string `yaml:"facility" json:"facility"`
18-
Port string `yaml:"port" json:"port"`
19-
FilePath string `yaml:"file path" json:"file path"`
20-
FileName string `yaml:"file name" json:"file name"`
21-
DebugMode bool `yaml:"debug mode" json:"debug mode"`
12+
Title string `yaml:"title" json:"title" toml:"title"`
13+
Type string `yaml:"type" json:"type" toml:"type"`
14+
NetworkType string `yaml:"network type" json:"network type" toml:"network_type"`
15+
Host string `yaml:"host" json:"host" toml:"host"`
16+
Severity string `yaml:"severity" json:"severity" toml:"severity"`
17+
Facility string `yaml:"facility" json:"facility" toml:"facility"`
18+
Port string `yaml:"port" json:"port" toml:"port"`
19+
FilePath string `yaml:"file path" json:"file path" toml:"file_path"`
20+
FileName string `yaml:"file name" json:"file name" toml:"file_name"`
21+
DebugMode bool `yaml:"debug mode" json:"debug mode" toml:"debug_mode"`
2222
}
2323

2424
type ctxlog struct{}

0 commit comments

Comments
 (0)