loggers

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2022 License: MIT Imports: 2 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 looger

func New

func New(logFile string, prefix string) (*Logger, error)

New returns a new logger

func (*Logger) Close

func (l *Logger) Close()

Close closes log file

func (*Logger) Error

func (l *Logger) Error(msg string)

Error outputs error

func (*Logger) Info

func (l *Logger) Info(msg string)

Info outputs info

func (*Logger) Warn

func (l *Logger) Warn(msg string)

Warn outputs warn

Jump to

Keyboard shortcuts

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