options

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LoggerOptions

type LoggerOptions struct {
	DefaultParameters map[string]interface{}
	Development       bool
	Encoding          string
	OutputPaths       []string
	ErrorOutputPaths  []string
	Level             string
	TimeKey           string
	LevelKey          string
	NameKey           string
	CallerKey         string
	StackTraceKey     string
	MessageKey        string
	FunctionKey       string
	EncodeLevel       *enumeration.EncodeLevel
	EncodeTime        *enumeration.EncodeTime
	EncodeDuration    *enumeration.EncodeDuration
	EncodeCaller      *enumeration.EncodeCaller
}

func New

func New() *LoggerOptions

func (*LoggerOptions) UseDefaultCallerKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultCallerKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultEncodeCallerIfNotSpecified

func (c *LoggerOptions) UseDefaultEncodeCallerIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultEncodeDurationIfNotSpecified

func (c *LoggerOptions) UseDefaultEncodeDurationIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultEncodeLevelIfNotSpecified

func (c *LoggerOptions) UseDefaultEncodeLevelIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultEncodeTimeIfNotSpecified

func (c *LoggerOptions) UseDefaultEncodeTimeIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultEncodingIfNotSpecified

func (c *LoggerOptions) UseDefaultEncodingIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultErrorOutputPathsIfNotSpecified

func (c *LoggerOptions) UseDefaultErrorOutputPathsIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultFunctionKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultFunctionKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultLevelKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultLevelKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultLoggingLevelIfNotSpecified

func (c *LoggerOptions) UseDefaultLoggingLevelIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultMessageKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultMessageKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultNameKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultNameKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultOutputPathsIfNotSpecified

func (c *LoggerOptions) UseDefaultOutputPathsIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultStackTraceKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultStackTraceKeyIfNotSpecified() *LoggerOptions

func (*LoggerOptions) UseDefaultTimeKeyIfNotSpecified

func (c *LoggerOptions) UseDefaultTimeKeyIfNotSpecified() *LoggerOptions

Jump to

Keyboard shortcuts

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