log

package
v1.16.19 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2024 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CONSOLE_ENABLE  = "enable"
	CONSOLE_DISABLE = "disable"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleWriter

type ConsoleWriter struct{}

func (*ConsoleWriter) Write

func (writer *ConsoleWriter) Write(bytes []byte) (int, error)

type LogFormatter

type LogFormatter struct{}

func (*LogFormatter) Format

func (s *LogFormatter) Format(entry *logrus.Entry) ([]byte, error)

type ZeroLogger

type ZeroLogger struct {
}

func InitLogger

func InitLogger() *ZeroLogger

func (*ZeroLogger) CallerInfos

func (logger *ZeroLogger) CallerInfos() string

func (*ZeroLogger) CallerInfosMaxLine

func (logger *ZeroLogger) CallerInfosMaxLine(maxLine int, skip int) string

func (*ZeroLogger) Debug

func (logger *ZeroLogger) Debug(message string)

func (*ZeroLogger) Error

func (logger *ZeroLogger) Error(message string)

func (*ZeroLogger) Fatal

func (logger *ZeroLogger) Fatal(message string)

func (*ZeroLogger) Info

func (logger *ZeroLogger) Info(message string)

func (*ZeroLogger) Panic

func (logger *ZeroLogger) Panic(message string)

func (*ZeroLogger) Warn

func (logger *ZeroLogger) Warn(message string)

Jump to

Keyboard shortcuts

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