logger

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EncoderKey_time       = "time"
	EncoderKey_level      = "level"
	EncoderKey_name       = "logger"
	EncoderKey_caller     = "caller"
	EncoderKey_message    = "msg"
	EncoderKey_stacktrace = "stacktrace"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

func NewConfigLogger

func NewConfigLogger(config gira.LogConfig) (*Logger, error)

func NewDefaultCliLogger

func NewDefaultCliLogger(logDir string) (*Logger, error)

func NewDefaultLogger

func NewDefaultLogger() *Logger

func (*Logger) Debug

func (l *Logger) Debug(args ...interface{})

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

func (*Logger) Debugw

func (l *Logger) Debugw(msg string, kvs ...interface{})

func (*Logger) Error

func (l *Logger) Error(args ...interface{})

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...interface{})

func (*Logger) Errorw

func (l *Logger) Errorw(msg string, kvs ...interface{})

func (*Logger) Fatal

func (l *Logger) Fatal(args ...interface{})

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

func (*Logger) Fatalw

func (l *Logger) Fatalw(msg string, kvs ...interface{})

func (*Logger) Info

func (l *Logger) Info(args ...interface{})

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...interface{})

func (*Logger) Infow

func (l *Logger) Infow(msg string, kvs ...interface{})

func (*Logger) Named

func (l *Logger) Named(s string) gira.Logger

func (*Logger) Warn

func (l *Logger) Warn(args ...interface{})

func (*Logger) Warnf

func (l *Logger) Warnf(format string, args ...interface{})

func (*Logger) Warnw

func (l *Logger) Warnw(msg string, kvs ...interface{})

type MongoSink

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

func (*MongoSink) Write

func (s *MongoSink) Write(data []byte) (n int, err error)

Jump to

Keyboard shortcuts

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