internal

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

Logger is our custom logger with Debugf method.

func NewLogger

func NewLogger(prefix string, debug bool) *Logger

NewLogger creates a new logger.

func (*Logger) Debugf

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

Debugf prints message only when Logger debug flag is set to true.

func (*Logger) Fatalf

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

Fatalf is equivalent to l.Printf() followed by a call to os.Exit(1) (or panic for debug logger).

func (*Logger) Printf

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

Printf calls l.Output to print to the logger. Arguments are handled in the manner of fmt.Printf.

Directories

Path Synopsis
Package test provides shared testing utilities.
Package test provides shared testing utilities.

Jump to

Keyboard shortcuts

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