Documentation
¶
Index ¶
- func Close() error
- func Debug(format string, args ...interface{})
- func Error(format string, args ...interface{})
- func Info(format string, args ...interface{})
- func Init(level Level, logFile string, noColor bool) error
- func IsDebugEnabled() bool
- func SetLevel(level Level)
- func Warn(format string, args ...interface{})
- func WrapError(err error, operation, vdbType, endpoint string) error
- func WrapErrorWithContext(err error, operation, vdbType, endpoint string, context map[string]interface{}) error
- type ContextError
- type Level
- type Logger
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsDebugEnabled ¶
func IsDebugEnabled() bool
IsDebugEnabled returns true if debug logging is enabled
Types ¶
type ContextError ¶
type ContextError struct {
Operation string
VDBType string
Endpoint string
Context map[string]interface{}
Err error
}
ContextError creates an error with rich context for debugging
func (*ContextError) Error ¶
func (e *ContextError) Error() string
Error implements the error interface
func (*ContextError) Unwrap ¶
func (e *ContextError) Unwrap() error
Unwrap implements error unwrapping
Click to show internal directories.
Click to hide internal directories.