logger

package
v0.0.0-...-bede153 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPrefix = ""
)

Variables

View Source
var (
	Verbose     bool
	CommandName string
)

Functions

This section is empty.

Types

type Logger

type Logger struct {
	*log.Logger
}

func GetInstance

func GetInstance(commandName string, flags int) *Logger

func (Logger) Command

func (log Logger) Command(message string)

func (Logger) FatalErrorExit

func (log Logger) FatalErrorExit(exitCode int, err error)

Log error object as message

func (Logger) FatalExit

func (log Logger) FatalExit(exitCode int, message string, sprintf ...interface{})

func (Logger) Item

func (log Logger) Item(message string, sprintf ...interface{})

func (Logger) Main

func (log Logger) Main(message string, sprintf ...interface{})

func (Logger) Printlnf

func (log Logger) Printlnf(message string, sprintf ...interface{})

func (Logger) Step

func (log Logger) Step(message string, sprintf ...interface{})

func (Logger) Verbose

func (log Logger) Verbose(message string, sprintf ...interface{})

Jump to

Keyboard shortcuts

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