Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitLoggerWithOpts ¶
func InitLoggerWithOpts(opts *Config)
InitLoggerWithOpts init logger with options
Types ¶
type BankerLogger ¶
type BankerLogger interface { // AddCallerSkip new cube logger with callstack skipping. AddCallerSkip(callerSkip int) BankerLogger // WithName adds some key-value pairs of context to a logger. // See Info for documentation on how key/value pairs work. WithName(name string) BankerLogger // WithValues adds a new element to the logger's name. // Successive calls with WithName continue to append // suffixes to the logger's name. It's strongly recommended // that name segments contain only letters, digits, and hyphens // (see the package documentation for more information). WithValues(keysAndValues ...interface{}) BankerLogger Debug(format string, a ...interface{}) Info(format string, a ...interface{}) Warn(format string, a ...interface{}) Error(format string, a ...interface{}) Fatal(format string, a ...interface{}) }
func WithName ¶
func WithName(name string) BankerLogger
func WithValues ¶
func WithValues(keysAndValues ...interface{}) BankerLogger
Click to show internal directories.
Click to hide internal directories.