logger

package
v0.0.0-...-9bb7583 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LogPrefix = ""
)

Variables

View Source
var (
	Logger      *SyncLogger
	Verbose     bool
	CommandName string
)

Functions

This section is empty.

Types

type SyncLogger

type SyncLogger struct {
	*log.Logger
}

func GetInstance

func GetInstance(commandName string, flags int) *SyncLogger

func (SyncLogger) Command

func (SyncLogger SyncLogger) Command(message string)

func (SyncLogger) FatalErrorExit

func (SyncLogger SyncLogger) FatalErrorExit(exitCode int, err error)

Log error object as message

func (SyncLogger) FatalExit

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

func (SyncLogger) Main

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

func (SyncLogger) Step

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

func (SyncLogger) Verbose

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

Jump to

Keyboard shortcuts

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