Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultLogrusLogger = NewLogrusLogger(&LogrusConfig{
MaxSize: 500,
MaxAge: 5,
Filename: "./pegasus.log",
})
DefaultLogrusLogger is a LogrusLogger instance with default configurations.
StderrLogger is an implementation of Logger that outputs logs to stderr. WARN: Don't use it in your production environment. Lack of logs after failures will make it
significantly difficult to track the root cause.
Functions ¶
Types ¶
type Logger ¶
type Logger interface { Fatal(args ...interface{}) Fatalf(format string, args ...interface{}) Print(args ...interface{}) Printf(format string, args ...interface{}) }
Logger is the internal logger served for pegasus go client. WARN: Don't use this logger for your application.
func NewLogrusLogger ¶
func NewLogrusLogger(cfg *LogrusConfig) Logger
NewLogrusLogger creates a new LogrusLogger.
Click to show internal directories.
Click to hide internal directories.