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