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 LogHandler ¶ added in v1.0.6
type LogHandler struct {
// contains filtered or unexported fields
}
func (*LogHandler) ErrorHandler ¶ added in v1.0.6
func (lh *LogHandler) ErrorHandler(err error, info string) bool
func (*LogHandler) InfoHandler ¶ added in v1.0.6
func (lh *LogHandler) InfoHandler(msg string)
func (*LogHandler) SetLogger ¶ added in v1.0.6
func (lh *LogHandler) SetLogger(l Logger)
func (*LogHandler) WarnHandler ¶ added in v1.0.6
func (lh *LogHandler) WarnHandler(err error, info string) bool
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)
GetLogging() *log.Logger
}
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.