Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnvHasFluentd ¶ added in v1.0.2
func EnvHasFluentd() bool
func SetByGinCtx ¶
Types ¶
type Logger ¶
type Logger interface {
Info(string)
Infof(format string, a ...any)
Debug(string)
Debugf(format string, a ...any)
Warn(string)
Warnf(format string, a ...any)
WarnPkg(error)
Error(string)
Errorf(format string, a ...any)
ErrorPkg(error)
Fatal(string)
Fatalf(format string, a ...any)
FatalPkg(error)
}
func GetByGinCtx ¶
type LoggerConf ¶
type LoggerConf struct {
FluentLog *fluentLog `yaml:"fluentd,omitempty"`
}
func NewLogerConfWithFluentd ¶
func NewLogerConfWithFluentd(host string, port int) *LoggerConf
Click to show internal directories.
Click to hide internal directories.