log

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLevel

func GetLevel() string

func GetLogPath

func GetLogPath() string

func GetStderr added in v0.0.4

func GetStderr(ctx context.Context) io.Writer

func GetStdout added in v0.0.4

func GetStdout(ctx context.Context) io.Writer

func GetWriter

func GetWriter(ctx context.Context) (writer io.Writer)

func SetLevel

func SetLevel(level logrus.Level)

Types

type ILogger

type ILogger interface {
	Tracef(format string, args ...interface{})
	Debugf(format string, args ...interface{})
	Infof(format string, args ...interface{})
	Warnf(format string, args ...interface{})
	Errorf(format string, args ...interface{})
	Fatalf(format string, args ...interface{})
	Panicf(format string, args ...interface{})
	Trace(args ...interface{})
	Debug(args ...interface{})
	Info(args ...interface{})
	Warn(args ...interface{})
	Error(args ...interface{})
	Fatal(args ...interface{})
	Panic(args ...interface{})
}

func GetLogger

func GetLogger(ctx context.Context) ILogger

type NotifyBuffer

type NotifyBuffer struct {
	Updated chan struct{}
	// contains filtered or unexported fields
}

func NewNotifyBuffer

func NewNotifyBuffer() *NotifyBuffer

func (*NotifyBuffer) Close

func (b *NotifyBuffer) Close()

func (*NotifyBuffer) Read

func (b *NotifyBuffer) Read() string

func (*NotifyBuffer) Write

func (b *NotifyBuffer) Write(p []byte) (int, error)

type PlainFormatter

type PlainFormatter struct{}

func (*PlainFormatter) Format

func (f *PlainFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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