zerologsettings

package module
v2.2.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 21, 2023 License: MIT Imports: 15 Imported by: 0

README

Application settings

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

func (*ElasticSettings) Write

func (settings *ElasticSettings) Write(p []byte) (int, 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) Init

func (settings *Settings) Init() error

Init - init settings.

func (*Settings) SetExtraWriters added in v2.2.0

func (settings *Settings) SetExtraWriters(writers []io.Writer)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL