Documentation
¶
Index ¶
- type CleanFormatter
- type FileHook
- type Logger
- func NewFileLogger(level, logFile string) (*Logger, error)
- func NewFileLoggerWithFormat(level, logFile, format string) (*Logger, error)
- func NewFileLoggerWithSeparateFormats(level, logFile, stdoutFormat, fileFormat string) (*Logger, error)
- func NewLogger(level string) *Logger
- func NewLoggerWithFormat(level, format string) *Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CleanFormatter ¶ added in v1.1.0
type CleanFormatter struct{}
CleanFormatter provides clean output with just the message
type FileHook ¶ added in v1.1.0
type FileHook struct {
// contains filtered or unexported fields
}
FileHook implements logrus.Hook interface for file logging with different format
type Logger ¶
func NewFileLogger ¶
func NewFileLoggerWithFormat ¶ added in v1.1.0
func NewFileLoggerWithSeparateFormats ¶ added in v1.1.0
func NewLoggerWithFormat ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.