Documentation
¶
Index ¶
- func NewLogger(log LoggerOutput, hooks ...LoggerOutput) *logrus.Logger
- func NewLumberjackLogger(filePath string, fileMaxSize int) *lumberjack.Logger
- func SetHook(logger *logrus.Logger, lo LoggerOutput)
- func SetLogger(logger *logrus.Logger, lo LoggerOutput)
- func StringToWriter(str string) *os.File
- type LoggerOutput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewLogger ¶
func NewLogger(log LoggerOutput, hooks ...LoggerOutput) *logrus.Logger
func NewLumberjackLogger ¶ added in v0.4.0
func NewLumberjackLogger(filePath string, fileMaxSize int) *lumberjack.Logger
func SetHook ¶ added in v0.4.0
func SetHook(logger *logrus.Logger, lo LoggerOutput)
func SetLogger ¶ added in v0.4.0
func SetLogger(logger *logrus.Logger, lo LoggerOutput)
func StringToWriter ¶ added in v0.4.0
Types ¶
Click to show internal directories.
Click to hide internal directories.