logging

package
v0.0.0-...-7febb3a Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

Types

type EchoLogger

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

func (*EchoLogger) Debugj

func (el *EchoLogger) Debugj(j log.JSON)

func (*EchoLogger) Errorj

func (el *EchoLogger) Errorj(j log.JSON)

func (*EchoLogger) Fatalj

func (el *EchoLogger) Fatalj(j log.JSON)

func (*EchoLogger) Infoj

func (el *EchoLogger) Infoj(j log.JSON)

func (*EchoLogger) Level

func (el *EchoLogger) Level() log.Lvl

func (*EchoLogger) Output

func (el *EchoLogger) Output() io.Writer

func (*EchoLogger) Panicj

func (el *EchoLogger) Panicj(j log.JSON)

func (*EchoLogger) Prefix

func (el *EchoLogger) Prefix() string

func (*EchoLogger) Print

func (el *EchoLogger) Print(i ...interface{})

func (*EchoLogger) Printf

func (el *EchoLogger) Printf(format string, args ...interface{})

func (*EchoLogger) Printj

func (el *EchoLogger) Printj(j log.JSON)

func (*EchoLogger) SetHeader

func (el *EchoLogger) SetHeader(h string)

func (*EchoLogger) SetLevel

func (el *EchoLogger) SetLevel(v log.Lvl)

func (*EchoLogger) SetOutput

func (el *EchoLogger) SetOutput(w io.Writer)

func (*EchoLogger) SetPrefix

func (el *EchoLogger) SetPrefix(p string)

func (*EchoLogger) Warnj

func (el *EchoLogger) Warnj(j log.JSON)

type Logger

type Logger struct {
	*zap.SugaredLogger
}

func (*Logger) Fatalf

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

func (*Logger) NewWith

func (l *Logger) NewWith(p1, p2 string) *Logger

func (*Logger) Noticef

func (l *Logger) Noticef(format string, v ...interface{})

func (*Logger) Tracef

func (l *Logger) Tracef(format string, v ...interface{})

func (*Logger) Write

func (l *Logger) Write(p []byte) (n int, err error)

type LoggerFactory

type LoggerFactory struct {
	Stopped chan struct{}

	LoggingLevel zap.AtomicLevel
	// contains filtered or unexported fields
}

func CreateLoggerFactory

func CreateLoggerFactory(ctx context.Context, host string, logConfig *config.LogConfig) *LoggerFactory

func GetLogFactory

func GetLogFactory() *LoggerFactory

func (*LoggerFactory) NewEchoLogger

func (lf *LoggerFactory) NewEchoLogger(name string) *EchoLogger

func (*LoggerFactory) NewLogger

func (lf *LoggerFactory) NewLogger(name string) *Logger

func (*LoggerFactory) SetLevel

func (lf *LoggerFactory) SetLevel(value config.LogLevelType)

func (*LoggerFactory) Shutdown

func (lf *LoggerFactory) Shutdown()

Jump to

Keyboard shortcuts

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