logging

package
v1.0.21-0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2021 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccessLogOptionJWTLogging added in v1.1.0

func AccessLogOptionJWTLogging(c *gin.Context, fields *logrus.Fields)

func AccessLogOptionRequestBody added in v1.1.0

func AccessLogOptionRequestBody(c *gin.Context, fields *logrus.Fields)

func Init added in v1.1.0

func Init(opts ...Option) interfaces.IDotpeLogger

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, APPID string) ILogConfig

type KibanaConfig

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

type Option added in v1.1.0

type Option func(dlogger *dlogger)

func WithAccessLogOptions added in v1.1.0

func WithAccessLogOptions(opts ...accessLogOption) Option

func WithAppInfo added in v1.1.0

func WithAppInfo(app, env, wd string) Option

func WithLogHook

func WithLogHook(hook logrus.Hook) Option

func WithLogOptions added in v1.1.0

func WithLogOptions(opts ...logOption) Option

Jump to

Keyboard shortcuts

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