tlog

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close()

func Debug

func Debug(args ...interface{})

func Debugf

func Debugf(format string, args ...interface{})

func Error

func Error(args ...interface{})

func Errorf

func Errorf(format string, args ...interface{})

func Fatal

func Fatal(args ...interface{})

func Fatalf

func Fatalf(format string, args ...interface{})

func Info

func Info(args ...interface{})

func Infof

func Infof(format string, args ...interface{})

func Init

func Init(c Config)

func Warning

func Warning(args ...interface{})

func Warningf

func Warningf(format string, args ...interface{})

Types

type Config

type Config struct {
	FileSize int    `toml:"filesize" json:"filesize"`
	FileNum  int    `toml:"filenum" json:"filenum"`
	FileName string `toml:"filename" json:"filename"`
	Level    string `toml:"level" json:"level"`
	Debug    bool   `toml:"debug" json:"debug"`
	Dir      string `toml:"dir" json:"dir"`
}

type LEVEL

type LEVEL byte
const (
	ALL LEVEL = iota
	DEBUG
	INFO
	WARNING
	ERROR
	FATAL
)

type Logger

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

type Msg

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

Jump to

Keyboard shortcuts

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