call

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const GlobalLogrusIOCCtxHookType = "GlobalLogrusIOCCtxHook"
View Source
const Name = "log"

Variables

This section is empty.

Functions

func GetdebugLogContext

func GetdebugLogContext(p *debugLogContextParam) (*debugLogContext, error)

func GetinvocationCtxNotifyHookIOCInterfaceSingleton

func GetinvocationCtxNotifyHookIOCInterfaceSingleton(p *invocationCtxNotifyHookParam) (invocationCtxNotifyHookIOCInterface, error)

func GetinvocationCtxNotifyHookSingleton

func GetinvocationCtxNotifyHookSingleton(p *invocationCtxNotifyHookParam) (*invocationCtxNotifyHook, error)

func GetlogGoRoutineInterceptorFacadeCtx

func GetlogGoRoutineInterceptorFacadeCtx(p *logGoRoutineInterceptorFacadeCtxParam) (*logGoRoutineInterceptorFacadeCtx, error)

func GetlogGoRoutineInterceptorFacadeCtxIOCInterface

func GetlogGoRoutineInterceptorFacadeCtxIOCInterface(p *logGoRoutineInterceptorFacadeCtxParam) (logGoRoutineInterceptorFacadeCtxIOCInterface, error)

func GetlogInterceptorIOCInterfaceSingleton

func GetlogInterceptorIOCInterfaceSingleton(p *logInterceptorParams) (logInterceptorIOCInterface, error)

func GetlogInterceptorSingleton

func GetlogInterceptorSingleton(p *logInterceptorParams) (*logInterceptor, error)

func GetlogServiceImplSingleton

func GetlogServiceImplSingleton() (*logServiceImpl, error)

Types

type GlobalLogrusIOCCtxHook

type GlobalLogrusIOCCtxHook struct {
	LogInterceptor logInterceptorIOCInterface `singleton:""`
	// contains filtered or unexported fields
}

func GetGlobalLogrusIOCCtxHookSingleton

func GetGlobalLogrusIOCCtxHookSingleton(p *globalLogrusIOCCtxHookParam) (*GlobalLogrusIOCCtxHook, error)

func (*GlobalLogrusIOCCtxHook) Fire

func (l *GlobalLogrusIOCCtxHook) Fire(entry *logrus.Entry) error

func (*GlobalLogrusIOCCtxHook) Levels

func (l *GlobalLogrusIOCCtxHook) Levels() []logrus.Level

func (*GlobalLogrusIOCCtxHook) SetLogLevel

func (l *GlobalLogrusIOCCtxHook) SetLogLevel(level uint32)
	SetLogLevel is used to dynamic change log level using 'iocli call' command

 	iocli call singleton github.com/alibaba/ioc-golang/extension/aop/log.GlobalLogrusIOCCtxHook SetLogLevel --params "[2]"

params:

PanicLevel: 0
FatalLevel: 1
ErrorLevel: 2
WarnLevel: 3
InfoLevel: 4
DebugLevel: 5
TraceLevel: 6

type GlobalLogrusIOCCtxHookIOCInterface

type GlobalLogrusIOCCtxHookIOCInterface interface {
	Levels() []logrus.Level
	Fire(entry *logrus.Entry) error
	SetLogLevel(level uint32)
}

func GetGlobalLogrusIOCCtxHookIOCInterfaceSingleton

func GetGlobalLogrusIOCCtxHookIOCInterfaceSingleton(p *globalLogrusIOCCtxHookParam) (GlobalLogrusIOCCtxHookIOCInterface, error)

type InvocationAOPLogConfig

type InvocationAOPLogConfig struct {
	Disable              bool   `yaml:"disable"`
	Level                string `yaml:"level"`       // default info
	PrintLevel           string `yaml:"print-level"` // default debug
	DisablePrintParams   bool   `yaml:"disable-print-params"`
	PrintParamsMaxDepth  int    `yaml:"print-params-max-depth"`
	PrintParamsMaxLength int    `yaml:"print-params-max-length"`
}

type InvocationCtxLogsGenerator

type InvocationCtxLogsGenerator struct {
}

func GetInvocationCtxLogsGeneratorSingleton

func GetInvocationCtxLogsGeneratorSingleton() (*InvocationCtxLogsGenerator, error)

func (*InvocationCtxLogsGenerator) GetFunctionSignatureLogs

func (i *InvocationCtxLogsGenerator) GetFunctionSignatureLogs(sdid, methodName string, isCall bool) string

func (*InvocationCtxLogsGenerator) GetParamsLogs

func (i *InvocationCtxLogsGenerator) GetParamsLogs(dumpedParams []string, isCall bool) string

type LogConfig

type LogConfig struct {
	Level                  string                 `yaml:"level"`
	GlobalLoggerReadOnly   bool                   `yaml:"global-logger-read-only"`
	InvocationAOPLogConfig InvocationAOPLogConfig `yaml:"invocation-aop-log"`
}

type ThisGlobalLogrusIOCCtxHook

type ThisGlobalLogrusIOCCtxHook struct {
}

func (*ThisGlobalLogrusIOCCtxHook) This

type ThisinvocationCtxNotifyHook

type ThisinvocationCtxNotifyHook struct {
}

func (*ThisinvocationCtxNotifyHook) This

func (t *ThisinvocationCtxNotifyHook) This() invocationCtxNotifyHookIOCInterface

type ThislogInterceptor

type ThislogInterceptor struct {
}

func (*ThislogInterceptor) This

func (t *ThislogInterceptor) This() logInterceptorIOCInterface

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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