Documentation ¶
Index ¶
- Constants
- type LogOption
- func WithCaller() LogOption
- func WithLevelDebug() LogOption
- func WithLevelError() LogOption
- func WithLevelInfo() LogOption
- func WithLevelWarn() LogOption
- func WithLogUnixTimestamp() LogOption
- func WithOutputFileLink(path string, filename string) LogOption
- func WithOutputFilePath(path string, pattern string) LogOption
- func WithOutputFileRotate(maxFiles uint, rotationTime time.Duration) LogOption
- func WithPrefix(prefix map[string]interface{}) LogOption
- type Xloger
Constants ¶
View Source
const ( LevelDebug = "debug" LevelInfo = "info" LevelWarn = "warn" LevelError = "error" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LogOption ¶
type LogOption func(o *logOptions)
func WithCaller ¶
func WithCaller() LogOption
func WithLevelDebug ¶
func WithLevelDebug() LogOption
func WithLevelError ¶
func WithLevelError() LogOption
func WithLevelInfo ¶
func WithLevelInfo() LogOption
func WithLevelWarn ¶
func WithLevelWarn() LogOption
func WithLogUnixTimestamp ¶
func WithLogUnixTimestamp() LogOption
func WithOutputFileLink ¶
func WithOutputFilePath ¶
func WithOutputFileRotate ¶
func WithPrefix ¶
type Xloger ¶
type Xloger struct {
// contains filtered or unexported fields
}
func (*Xloger) AppendTimeDelay ¶
Click to show internal directories.
Click to hide internal directories.