logger

package
v0.0.0-...-114cd3e Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormattedMsg

func FormattedMsg(message string) string

FormattedMsg format logging message.

Types

type Log

type Log struct {
	// contains filtered or unexported fields
}

Log struct.

func Error

func Error() *Log

Error returns new logger with logging level error.

func Info

func Info() *Log

Info returns new logger with logging level info.

func Warn

func Warn() *Log

Warn returns new logger with logging level warn.

func (*Log) Command

func (l *Log) Command(cmd, code string) *Log

Command set cmd for logging.

func (*Log) Log

func (l *Log) Log()

Log build new logging message and display.

func (*Log) Message

func (l *Log) Message(msg ...string) *Log

Message set new logging message.

Jump to

Keyboard shortcuts

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