Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitCubeLoggerWithOpts ¶
func InitCubeLoggerWithOpts(opts *Config)
InitCubeLoggerWithOpts init cube logger with options
Types ¶
type CubeLogger ¶
type CubeLogger interface { // AddCallerSkip new cube logger with callstack skipping. AddCallerSkip(callerSkip int) CubeLogger // WithName adds some key-value pairs of context to a logger. // See Info for documentation on how key/value pairs work. WithName(name string) CubeLogger // 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{}) CubeLogger 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) CubeLogger
func WithValues ¶
func WithValues(keysAndValues ...interface{}) CubeLogger
Click to show internal directories.
Click to hide internal directories.