Skip to content

Commit

Permalink
add toml tags for unmarshal
Browse files Browse the repository at this point in the history
  • Loading branch information
lelvisl committed Mar 27, 2018
1 parent 6150719 commit 71dba0e
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions logger.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ import (

//LogConfig is a configuration for logger
type LogConfig struct {
Title string `yaml:"title" json:"title"`
Type string `yaml:"type" json:"type"`
NetworkType string `yaml:"network type" json:"network type"`
Host string `yaml:"host" json:"host"`
Severity string `yaml:"severity" json:"severity"`
Facility string `yaml:"facility" json:"facility"`
Port string `yaml:"port" json:"port"`
FilePath string `yaml:"file path" json:"file path"`
FileName string `yaml:"file name" json:"file name"`
DebugMode bool `yaml:"debug mode" json:"debug mode"`
Title string `yaml:"title" json:"title" toml:"title"`
Type string `yaml:"type" json:"type" toml:"type"`
NetworkType string `yaml:"network type" json:"network type" toml:"network_type"`
Host string `yaml:"host" json:"host" toml:"host"`
Severity string `yaml:"severity" json:"severity" toml:"severity"`
Facility string `yaml:"facility" json:"facility" toml:"facility"`
Port string `yaml:"port" json:"port" toml:"port"`
FilePath string `yaml:"file path" json:"file path" toml:"file_path"`
FileName string `yaml:"file name" json:"file name" toml:"file_name"`
DebugMode bool `yaml:"debug mode" json:"debug mode" toml:"debug_mode"`
}

type ctxlog struct{}
Expand Down

0 comments on commit 71dba0e

Please sign in to comment.