logger

package
v0.0.0-...-ca9a687 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 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(prefix string) (lo *Logger)

New Create Logger with Prefix

func (*Logger) Level

func (lo *Logger) Level() Lvl

Level Store lvl

func (*Logger) Log

func (lo *Logger) Log(level Lvl, format string, v ...interface{})

Log Make Log

func (*Logger) Print

func (lo *Logger) Print(v ...interface{})

Print Logger

func (*Logger) SetOutput

func (lo *Logger) SetOutput(v io.Writer)

SetOutput for Logger

type Lvl

type Lvl uint32

Lvl type uint32

Jump to

Keyboard shortcuts

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