filelog

package module
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 8 Imported by: 0

README

log2file

classify log and write to file

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close

func Close() (err error)

func Debug

func Debug(args ...any)

func Debugf

func Debugf(format string, args ...any)

func Error

func Error(args ...any)

func Errorf

func Errorf(format string, args ...any)

func GetDefault

func GetDefault() *filelog

func GetFileLevels

func GetFileLevels() map[string]Level

func Info

func Info(args ...any)

func Infof

func Infof(format string, args ...any)

func New

func New() *filelog

func Print

func Print(args ...any)

func Printf

func Printf(format string, args ...any)

func SetFileLevels

func SetFileLevels(logfile string, level Level)

func SetFlags

func SetFlags(level Level, flags int)

func Warn

func Warn(args ...any)

func Warnf

func Warnf(format string, args ...any)

Types

type Level

type Level int
const (
	Ldebug Level = 1 << iota
	Linfo
	Lwarn
	Lerror
)

Jump to

Keyboard shortcuts

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