log

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

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 String

func String(i stringInt) string

String returns the String function of i or empty if its a nil pointer.

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) DebugLevelf

func (l *Logger) DebugLevelf(level int, format string, args ...interface{})

DebugLevelf will print debug messages if debug logging is enabled

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