logger

package
v0.0.0-...-26838ce Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logger

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

Logger struct

func New

func New(logPath string, mute bool) (*Logger, error)

New init Logger struct

func (*Logger) Fatal

func (l *Logger) Fatal(line string) error

Fatal log line to log file

func (*Logger) Fatalf

func (l *Logger) Fatalf(line string, args ...interface{}) error

Fatalf log line with format to log file

func (*Logger) Info

func (l *Logger) Info(line string) error

Info log line to log file

func (*Logger) Infof

func (l *Logger) Infof(line string, args ...interface{}) error

Infof log line with format to log file

Jump to

Keyboard shortcuts

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