log

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Index

Constants

View Source
const MaxTxsInLog = 50 // up to 50 transaction information can be displayed in the log

Variables

This section is empty.

Functions

func CCDebug added in v1.3.1

func CCDebug(msgs ...interface{})

func CCDebugf added in v1.3.1

func CCDebugf(format string, values ...interface{})

func CCError added in v1.3.1

func CCError(msgs ...interface{})

func CCErrorf added in v1.3.1

func CCErrorf(format string, values ...interface{})

func CCInfo added in v1.3.1

func CCInfo(msgs ...interface{})

func CCInfof added in v1.3.1

func CCInfof(format string, values ...interface{})

func CCWarn added in v1.3.1

func CCWarn(msgs ...interface{})

func CCWarnf added in v1.3.1

func CCWarnf(format string, values ...interface{})

func CCWithFields added in v1.3.1

func CCWithFields(fields logrus.Fields) logrus.FieldLogger

func Debug

func Debug(msgs ...interface{})

func Debugf

func Debugf(format string, values ...interface{})

func Error

func Error(msgs ...interface{})

func Errorf

func Errorf(format string, values ...interface{})

func Info

func Info(msgs ...interface{})

func Infof

func Infof(format string, values ...interface{})

func InitCheckLog added in v1.3.1

func InitCheckLog(path string, nid []byte)

func InitLog

func InitLog(path string, nid []byte)

func InitLogWithSuffix added in v1.6.4

func InitLogWithSuffix(path string, suffix string)

func MustDebugf added in v1.3.6

func MustDebugf(logger logrus.FieldLogger, format string, args ...interface{})

func MustErrorf added in v1.3.6

func MustErrorf(logger logrus.FieldLogger, format string, args ...interface{})

func MustInfof added in v1.3.6

func MustInfof(logger logrus.FieldLogger, format string, args ...interface{})

func MustWarnf added in v1.3.6

func MustWarnf(logger logrus.FieldLogger, format string, args ...interface{})

func SetFields added in v1.6.5

func SetFields(fields logrus.Fields)

func Warn

func Warn(msgs ...interface{})

func Warnf

func Warnf(format string, values ...interface{})

func WithField

func WithField(vs ...interface{}) logrus.FieldLogger

func WithFields

func WithFields(fields logrus.Fields) logrus.FieldLogger

Types

type EmptyWriter

type EmptyWriter struct{}

func (*EmptyWriter) Write

func (w *EmptyWriter) Write(p []byte) (n int, err error)

type FileAndConsoleHook

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

func NewFileAndConsoleHook

func NewFileAndConsoleHook(formatter logrus.Formatter, logWriter io.Writer,
	console io.Writer, consoleLevels ...logrus.Level) *FileAndConsoleHook

func (*FileAndConsoleHook) Fire

func (m *FileAndConsoleHook) Fire(entry *logrus.Entry) error

func (*FileAndConsoleHook) Levels

func (m *FileAndConsoleHook) Levels() []logrus.Level

Jump to

Keyboard shortcuts

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