mylogger

package
v0.0.0-...-877bbaa Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2021 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LogLevel

type LogLevel uint16
const (
	UNKNOWN LogLevel = iota
	DEBUG
	INFO
	WARNING
	ERROR
	FATAL
)

type Logger

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

Logger logger struct

func NewLog

func NewLog(level string) Logger

NewLog new function

func (Logger) Debug

func (l Logger) Debug(format string, a ...interface{})

func (Logger) Error

func (l Logger) Error(format string, a ...interface{})

func (Logger) Fatal

func (l Logger) Fatal(format string, a ...interface{})

func (Logger) Info

func (l Logger) Info(format string, a ...interface{})

func (Logger) Warning

func (l Logger) Warning(format string, a ...interface{})

Jump to

Keyboard shortcuts

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