loggo

package
v0.0.0-...-c9cf022 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LEVEL_DEBUG = iota
	LEVEL_INFO
	LEVEL_WARN
	LEVEL_ERROR
)

Variables

This section is empty.

Functions

func Debug

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

func Error

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

func Info

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

func Ini

func Ini(config Config)

func IsDebug

func IsDebug() bool

func IsError

func IsError() bool

func IsInfo

func IsInfo() bool

func IsWarn

func IsWarn() bool

func NameToLevel

func NameToLevel(name string) int

func SetPrinter

func SetPrinter(w io.Writer)

func Warn

func Warn(format string, a ...interface{})

Types

type Config

type Config struct {
	Level      int
	Prefix     string
	MaxDay     int
	NoLogFile  bool
	NoPrint    bool
	NoLogColor bool
	FullPath   bool
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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