Documentation ¶
Overview ¶
Package log contains logging utilities used by the ALB Ingress controller.
Index ¶
- Constants
- func Prettify(i interface{}) string
- func SetLogLevel(level string)
- type Logger
- func (l *Logger) Debugf(format string, args ...interface{})
- func (l *Logger) Errorf(format string, args ...interface{})
- func (l *Logger) Exitf(format string, args ...interface{})
- func (l *Logger) Fatalf(format string, args ...interface{})
- func (l *Logger) Infof(format string, args ...interface{})
- func (l *Logger) Warnf(format string, args ...interface{})
Constants ¶
View Source
const ( // ERROR is for error log levels ERROR = iota // WARN is for warning log levels WARN // INFO is for info log levels INFO // DEBUG is for debug log levels DEBUG )
Variables ¶
This section is empty.
Functions ¶
func Prettify ¶
func Prettify(i interface{}) string
Prettify uses awsutil.Prettify to print structs, but also removes '\n' for better logging.
func SetLogLevel ¶
func SetLogLevel(level string)
SetLogLevel configures the logging level based off of the level string
Types ¶
type Logger ¶
type Logger struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.