Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetVersion ¶
func SetVersion(ver string)
Types ¶
type ElasticSettings ¶
type ElasticSettings struct { URL []string `yaml:"url"` CACert *string `yaml:"ca-cert"` CACertFilename *string `yaml:"ca-cert-filename"` User string `yaml:"user"` Password string `yaml:"password"` IndexName *string `yaml:"indexName"` IndexSuffixFormat *string `yaml:"indexSuffixFormat"` Debug bool `yaml:"debug"` // contains filtered or unexported fields }
func (*ElasticSettings) Init ¶
func (settings *ElasticSettings) Init() error
type FileSettings ¶
type FileSettings struct { Directory string `yaml:"directory"` Filename string `yaml:"filename"` MaxSize int `yaml:"maxSize"` MaxBackups int `yaml:"maxBackups"` MaxAge int `yaml:"maxAge"` }
FileSettings - settings for file.
type GCOLSettings ¶
type GCOLSettings struct {
ProjectID string `yaml:"projectId"`
}
type Settings ¶
type Settings struct { Application *string `yaml:"application"` File *FileSettings `yaml:"file"` Elastic *ElasticSettings `yaml:"elastic"` GCOL *GCOLSettings `yaml:"gcol"` BlockConsole *bool `yaml:"blockConsole"` // contains filtered or unexported fields }
Settings - settings for logging.
func (*Settings) SetExtraWriters ¶ added in v2.2.0
Source Files ¶
Click to show internal directories.
Click to hide internal directories.