Documentation ¶
Index ¶
- type HLogger
- type LogOptions
- func SetAppName(appName string) LogOptions
- func SetCtxKey(ctxKey string) LogOptions
- func SetDevelopment(development bool) LogOptions
- func SetLevel(level string) LogOptions
- func SetLogFileDir(logFileDir string) LogOptions
- func SetMaxAge(maxAge int) LogOptions
- func SetMaxBackups(maxBackups int) LogOptions
- func SetMaxSize(maxSize int) LogOptions
- func SetTimeFormat(format string) LogOptions
- func SetWriteConsole(writeConsole bool) LogOptions
- func SetWriteFile(writeFile bool) LogOptions
- type Options
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HLogger ¶
func NewLogger ¶
func NewLogger(opts ...LogOptions) *HLogger
type LogOptions ¶
type LogOptions func(*Options)
func SetAppName ¶
func SetAppName(appName string) LogOptions
func SetCtxKey ¶
func SetCtxKey(ctxKey string) LogOptions
func SetDevelopment ¶
func SetDevelopment(development bool) LogOptions
func SetLevel ¶
func SetLevel(level string) LogOptions
func SetLogFileDir ¶
func SetLogFileDir(logFileDir string) LogOptions
func SetMaxAge ¶
func SetMaxAge(maxAge int) LogOptions
func SetMaxBackups ¶
func SetMaxBackups(maxBackups int) LogOptions
func SetMaxSize ¶
func SetMaxSize(maxSize int) LogOptions
func SetTimeFormat ¶
func SetTimeFormat(format string) LogOptions
func SetWriteConsole ¶
func SetWriteConsole(writeConsole bool) LogOptions
func SetWriteFile ¶
func SetWriteFile(writeFile bool) LogOptions
Click to show internal directories.
Click to hide internal directories.