logging_helpers

package module
v0.0.0-...-b4c22fa Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2020 License: MIT Imports: 7 Imported by: 2

README

logging-helpers

Helpers for github.com/moisespsena-go/logging

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Rotates

func Rotates(backend *backends.FileBackend, options ...logrotate.Options)

Types

type LogLevel

type LogLevel struct {
	Level string
}

func (LogLevel) GetLevel

func (ll LogLevel) GetLevel(defaul ...logging.Level) logging.Level

type LoggingConfig

type LoggingConfig struct {
	LogLevel `yaml:",inline"`
	Modules  []ModuleLoggingConfig
}

type ModuleLoggingBackendConfig

type ModuleLoggingBackendConfig struct {
	LogLevel `yaml:",inline"`
	Dst      string
	Options  map[string]interface{}
}

type ModuleLoggingConfig

type ModuleLoggingConfig struct {
	LogLevel    `yaml:",inline"`
	Name        string
	Backends    []ModuleLoggingBackendConfig `yaml:"backends"`
	ErrBackends []ModuleLoggingBackendConfig `yaml:"err_backends" mapstructure:"err_backends"`
	Options     map[string]interface{}
}

func (ModuleLoggingConfig) Backend

func (this ModuleLoggingConfig) Backend() (results []logging.BackendCloser)

func (ModuleLoggingConfig) BackendPrinter

func (this ModuleLoggingConfig) BackendPrinter() (results []logging.BackendPrintCloser)

func (ModuleLoggingConfig) ErrBackend

func (this ModuleLoggingConfig) ErrBackend() (results []logging.BackendCloser)

func (ModuleLoggingConfig) ErrBackendPrinter

func (this ModuleLoggingConfig) ErrBackendPrinter() (results []logging.BackendPrintCloser)

Jump to

Keyboard shortcuts

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