log

package
v0.0.0-...-0420b53 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 10, 2018 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package log contains logging utilities used by the ALB Ingress controller.

Index

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
}

func New

func New(name string) *Logger

New creates a new Logger. The name appears in the log lines.

func (*Logger) Debugf

func (l *Logger) Debugf(format string, args ...interface{})

Debugf will print debug messages if debug logging is enabled

func (*Logger) Errorf

func (l *Logger) Errorf(format string, args ...interface{})

Errorf will print error level messages

func (*Logger) Exitf

func (l *Logger) Exitf(format string, args ...interface{})

Exitf will print error level messages and exit

func (*Logger) Fatalf

func (l *Logger) Fatalf(format string, args ...interface{})

Fatalf will print error level messages

func (*Logger) Infof

func (l *Logger) Infof(format string, args ...interface{})

Infof will print info level messages

func (*Logger) Warnf

func (l *Logger) Warnf(format string, args ...interface{})

Warnf will print warning level messages

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL