Documentation ¶
Index ¶
- Variables
- func Debug(args ...interface{})
- func Error(args ...interface{})
- func Fatal(args ...interface{})
- func GetServerLogger() *log.Logger
- func GetSessionLogger() *log.Entry
- func GetSessionTraceString() string
- func Info(args ...interface{})
- func InitContextLogger(config ContextLoggerConfig)
- func InitServerLogger(config LoggerConfig)
- func InitSessionLogger(namespace, name, apiVersion, kind, operation string)
- func Panic(args ...interface{})
- func Trace(args ...interface{})
- func Warn(args ...interface{})
- func WithFields(fields log.Fields) *log.Entry
- type ContextLogger
- type ContextLoggerConfig
- type LoggerConfig
- type SessionTraceHook
Constants ¶
This section is empty.
Variables ¶
View Source
var ServerLogger *log.Logger
View Source
var SessionLogger *log.Entry
Functions ¶
func GetServerLogger ¶
func GetSessionLogger ¶
func GetSessionTraceString ¶
func GetSessionTraceString() string
func InitContextLogger ¶
func InitContextLogger(config ContextLoggerConfig)
func InitServerLogger ¶
func InitServerLogger(config LoggerConfig)
func InitSessionLogger ¶
func InitSessionLogger(namespace, name, apiVersion, kind, operation string)
Types ¶
type ContextLogger ¶
type ContextLogger struct {
// contains filtered or unexported fields
}
func GetContextLogger ¶
func GetContextLogger() *ContextLogger
func (*ContextLogger) SendLog ¶
func (cxLogger *ContextLogger) SendLog(logBytes []byte)
type ContextLoggerConfig ¶
type LoggerConfig ¶
type SessionTraceHook ¶
type SessionTraceHook struct {
// contains filtered or unexported fields
}
var SessionTrace *SessionTraceHook
func NewSessionTraceHook ¶
func NewSessionTraceHook(minLevel logrus.Level, formatter logrus.Formatter) *SessionTraceHook
func (*SessionTraceHook) GetBufferedString ¶
func (hook *SessionTraceHook) GetBufferedString() string
func (*SessionTraceHook) Levels ¶
func (hook *SessionTraceHook) Levels() []logrus.Level
func (*SessionTraceHook) Reset ¶
func (hook *SessionTraceHook) Reset()
Click to show internal directories.
Click to hide internal directories.