logger

package
v0.0.0-...-dfa80c7 Latest Latest
Warning

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

Go to latest
Published: May 7, 2019 License: MIT Imports: 3 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 mainly used to print in debug mode

func NewLogger

func NewLogger(stdout io.Writer, prefix string, flag int) *Logger

NewLogger returns a Logger

func (*Logger) Print

func (l *Logger) Print(v ...interface{})

Print calls log.Print to print to the logger.

func (*Logger) Printf

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

Printf calls log.Printf to print to the logger.

func (*Logger) Println

func (l *Logger) Println(v ...interface{})

Println calls log.Println to print to the logger.

Jump to

Keyboard shortcuts

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