logging

package
v1.0.16-1631182499 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2021 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitLogger

func InitLogger(lops *LoggerOptions) (interfaces.IDotpeLogger, error)

InitLogger sets up the logger object with LoeggerOptions provided. It returns reference logger object and error

Types

type FileLogConfig added in v1.0.17

type FileLogConfig struct {
	// contains filtered or unexported fields
}

type ILogConfig added in v1.0.17

type ILogConfig interface {
	// contains filtered or unexported methods
}

func NewFileLogConfig added in v1.0.17

func NewFileLogConfig(logdir, app string) ILogConfig

func NewKibanaConfig added in v1.0.17

func NewKibanaConfig(Client, AccessKey, SecretKey, APP, Hostname, APPID string) ILogConfig

type KibanaConfig

type KibanaConfig struct {
	// contains filtered or unexported fields
}

type LoggerOptions

type LoggerOptions struct {
	IConfig ILogConfig
	APP,
	APPID,
	LOGENV,
	Hostname,
	WD string // Working directory of the application
	DisableJSONLogging bool
}

LoggerOptions is set of config data for logg

Jump to

Keyboard shortcuts

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