log

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LevelDebug int = 1
	LevelTrace int = 2
	LevelInfo  int = 3
	LevelWarn  int = 4
	LevelError int = 5
)

LevelDebug

View Source
const (
	LogStd  int = 0
	LogFile int = 1
)

LogStd

Variables

This section is empty.

Functions

func Debug

func Debug(msg string)

Debug func

func Error

func Error(msg string)

Error func

func Info

func Info(msg string)

Info func

func New

func New(conf *Config) error

New func

func Trace

func Trace(msg string)

Trace func

func Warn

func Warn(msg string)

Warn func

Types

type Config

type Config struct {
	Level    int
	Mode     int
	FileName string
	LogPath  string
	MaxDays  int
}

Config struct

type Data

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

Data struct

type Logger

type Logger struct {
	Writers []logWriter
	// contains filtered or unexported fields
}

Logger struct

Jump to

Keyboard shortcuts

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