Documentation
¶
Index ¶
- func Debug(args ...any)
- func Debugf(format string, args ...any)
- func Error(args ...any)
- func Errorf(format string, args ...any)
- func Fatal(args ...any)
- func Fatalf(format string, args ...any)
- func Info(args ...any)
- func Infof(format string, args ...any)
- func NewBuffer() *bytes.Buffer
- func PutBuffer(buf *bytes.Buffer)
- func ReleaseEntry(entry *Entry)
- func SetCallerSplitter(splitter func(s string) string)
- func SetFormatter(f Formatter)
- func SetJob(job string)
- func SetReportCaller(report bool)
- func SetUrl(url string)
- func Trace(args ...any)
- func Tracef(format string, args ...any)
- func Wait()
- func Warn(args ...any)
- func Warnf(format string, args ...any)
- type DefaultFormatter
- type Entry
- type EntryJob
- type EntryStream
- type Formatter
- type Level
- type Logger
- func (logger *Logger) Debug(args ...any)
- func (logger *Logger) Debugf(format string, args ...any)
- func (logger *Logger) Error(args ...any)
- func (logger *Logger) Errorf(format string, args ...any)
- func (logger *Logger) Fatal(args ...any)
- func (logger *Logger) Fatalf(format string, args ...any)
- func (logger *Logger) Info(args ...any)
- func (logger *Logger) Infof(format string, args ...any)
- func (logger *Logger) Log(job string, level Level, args ...any)
- func (logger *Logger) Logf(job string, level Level, format string, args ...any)
- func (logger *Logger) Trace(args ...any)
- func (logger *Logger) Tracef(format string, args ...any)
- func (logger *Logger) Warn(args ...any)
- func (logger *Logger) Warnf(format string, args ...any)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReleaseEntry ¶
func ReleaseEntry(entry *Entry)
func SetCallerSplitter ¶
func SetFormatter ¶
func SetFormatter(f Formatter)
func SetReportCaller ¶
func SetReportCaller(report bool)
Types ¶
type DefaultFormatter ¶
type DefaultFormatter struct { }
type Entry ¶
type Entry struct {
Streams []EntryStream `json:"streams"`
}
type EntryStream ¶
type Level ¶
type Level uint32
func ParseLevel ¶
ParseLevel takes a string level and returns the Logrus log level constant.
func (Level) MarshalText ¶
func (*Level) UnmarshalText ¶
UnmarshalText implements encoding.TextUnmarshaler.
Click to show internal directories.
Click to hide internal directories.