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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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