Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisteDriver ¶
func RegisteDriver(driver Driver)
registered with the same name, the one registered last will take effect.
Types ¶
type Driver ¶
type Driver interface {
// Retrieve the name of current driver, like 'default', 'zap', 'logrus' ...
Name() string
// Print responsible of printing the standard Log
Print(r *core.Record)
// Retrieve log level of the specified logger,
// it should return the lowest Level that could be print,
// which can help invoker to decide whether prepare print or not.
GetLevel(logger string) core.Level
}
Driver define the standard log print specification
Click to show internal directories.
Click to hide internal directories.