helioslogrus

package module
v1.8.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DebugLevel = origin_logrus.DebugLevel
View Source
const ErrorLevel = origin_logrus.ErrorLevel
View Source
const FatalLevel = origin_logrus.FatalLevel
View Source
const FieldKeyFile = origin_logrus.FieldKeyFile
View Source
const FieldKeyFunc = origin_logrus.FieldKeyFunc
View Source
const FieldKeyLevel = origin_logrus.FieldKeyLevel
View Source
const FieldKeyLogrusError = origin_logrus.FieldKeyLogrusError
View Source
const FieldKeyMsg = origin_logrus.FieldKeyMsg
View Source
const FieldKeyTime = origin_logrus.FieldKeyTime
View Source
const InfoLevel = origin_logrus.InfoLevel
View Source
const PanicLevel = origin_logrus.PanicLevel
View Source
const TraceLevel = origin_logrus.TraceLevel
View Source
const WarnLevel = origin_logrus.WarnLevel

Variables

Functions

func AddHeliosHook

func AddHeliosHook() *heliosHook

func AddHook

func AddHook(hook Hook)

func Debug

func Debug(args ...interface{})

func DebugFn

func DebugFn(fn LogFunction)

func Debugf

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

func Debugln

func Debugln(args ...interface{})

func DeferExitHandler

func DeferExitHandler(handler func())

func Error

func Error(args ...interface{})

func ErrorFn

func ErrorFn(fn LogFunction)

func Errorf

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

func Errorln

func Errorln(args ...interface{})

func Exit

func Exit(code int)

func Fatal

func Fatal(args ...interface{})

func FatalFn

func FatalFn(fn LogFunction)

func Fatalf

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

func Fatalln

func Fatalln(args ...interface{})

func Info

func Info(args ...interface{})

func InfoFn

func InfoFn(fn LogFunction)

func Infof

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

func Infoln

func Infoln(args ...interface{})

func IsLevelEnabled

func IsLevelEnabled(level Level) bool

func Panic

func Panic(args ...interface{})

func PanicFn

func PanicFn(fn LogFunction)

func Panicf

func Panicf(format string, args ...interface{})

func Panicln

func Panicln(args ...interface{})

func Print

func Print(args ...interface{})

func PrintFn

func PrintFn(fn LogFunction)

func Printf

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

func Println

func Println(args ...interface{})

func RegisterExitHandler

func RegisterExitHandler(handler func())

func SetBufferPool

func SetBufferPool(bp BufferPool)

func SetFormatter

func SetFormatter(formatter Formatter)

func SetLevel

func SetLevel(level Level)

func SetOutput

func SetOutput(out io.Writer)

func SetReportCaller

func SetReportCaller(include bool)

func Trace

func Trace(args ...interface{})

func TraceFn

func TraceFn(fn LogFunction)

func Tracef

func Tracef(format string, args ...interface{})

func Traceln

func Traceln(args ...interface{})

func Warn

func Warn(args ...interface{})

func WarnFn

func WarnFn(fn LogFunction)

func Warnf

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

func Warning

func Warning(args ...interface{})

func WarningFn

func WarningFn(fn LogFunction)

func Warningf

func Warningf(format string, args ...interface{})

func Warningln

func Warningln(args ...interface{})

func Warnln

func Warnln(args ...interface{})

Types

type BufferPool

type BufferPool = origin_logrus.BufferPool

type Entry

type Entry = origin_logrus.Entry

func NewEntry

func NewEntry(logger *Logger) *Entry

func WithContext

func WithContext(ctx context.Context) *Entry

func WithError

func WithError(err error) *Entry

func WithField

func WithField(key string, value interface{}) *Entry

func WithFields

func WithFields(fields Fields) *Entry

func WithTime

func WithTime(t time.Time) *Entry

type Ext1FieldLogger

type Ext1FieldLogger = origin_logrus.Ext1FieldLogger

type FieldLogger

type FieldLogger = origin_logrus.FieldLogger

type FieldMap

type FieldMap = origin_logrus.FieldMap

type Fields

type Fields = origin_logrus.Fields

type Formatter

type Formatter = origin_logrus.Formatter

type Hook

type Hook = origin_logrus.Hook

type JSONFormatter

type JSONFormatter = origin_logrus.JSONFormatter

type Level

type Level = origin_logrus.Level

func GetLevel

func GetLevel() Level

func ParseLevel

func ParseLevel(lvl string) (Level, error)

type LevelHooks

type LevelHooks = origin_logrus.LevelHooks

type LogFunction

type LogFunction = origin_logrus.LogFunction

type Logger

type Logger = origin_logrus.Logger

func New

func New() *Logger

func StandardLogger

func StandardLogger() *Logger

type MutexWrap

type MutexWrap = origin_logrus.MutexWrap

type StdLogger

type StdLogger = origin_logrus.StdLogger

type TextFormatter

type TextFormatter = origin_logrus.TextFormatter

Jump to

Keyboard shortcuts

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