logger

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

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

Go to latest
Published: May 15, 2018 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const CAPITALIZED = 1
View Source
const LOWERCASE = 3
View Source
const NORMAL = 0
View Source
const UPPERCASE = 2

Variables

This section is empty.

Functions

func GetLogs

func GetLogs() (string, error)

func LogError

func LogError(content interface{}, vars ...interface{})

func LogHeader

func LogHeader(content interface{}, vars ...interface{})

func LogListPoint

func LogListPoint(content ...interface{})
func LogLogo(content ...interface{})

func LogNormal

func LogNormal(content interface{}, vars ...interface{})

func LogProgress

func LogProgress(content interface{}, vars ...interface{})

func LogWarning

func LogWarning(content interface{}, vars ...interface{})

Types

type Logger

type Logger struct {
	Internal *log.Logger
}

The logger instance.

func GetLoggerInstance

func GetLoggerInstance() *Logger

func NewLogger

func NewLogger(filePath string, prefix string, clean ...bool) (*Logger, *os.File)

Return an instance of logger.

func (*Logger) LogError

func (logger *Logger) LogError(content interface{}, vars ...interface{})

func (*Logger) LogHeader

func (logger *Logger) LogHeader(content interface{}, vars ...interface{})

func (*Logger) LogListPoint

func (logger *Logger) LogListPoint(content ...interface{})

func (*Logger) LogNormal

func (logger *Logger) LogNormal(content interface{}, vars ...interface{})

func (*Logger) LogProgress

func (logger *Logger) LogProgress(content interface{}, vars ...interface{})

func (*Logger) LogWarning

func (logger *Logger) LogWarning(content interface{}, vars ...interface{})

Jump to

Keyboard shortcuts

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