log

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: MIT Imports: 6 Imported by: 8

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CloseFile

func CloseFile() error

func Debug

func Debug(module, logText string, args ...interface{}) error

func Error

func Error(module, logText string, args ...interface{}) error

func Fine

func Fine(module, logText string, args ...interface{}) error

func GetLastTimestamp

func GetLastTimestamp() string

func Info

func Info(module, logText string, args ...interface{}) error

func OverwriteFormat

func OverwriteFormat(format string)

func SetLogLevel

func SetLogLevel(level string)

func ToFile

func ToFile(toFile string) error

func Warn

func Warn(module, logText string, args ...interface{}) error

Types

type LogLevel

type LogLevel int
const (
	LevelFine LogLevel = iota
	LevelDebug
	LevelInfo
	LevelWarn
	LevelError
	LevelFatal
	LevelPanic
	LevelNone
)

type LoggingInteface

type LoggingInteface interface {
	Fine(module, logText string, args ...interface{}) error
	Debug(module, logText string, args ...interface{}) error
	Info(module, logText string, args ...interface{}) error
	Warn(module, logText string, args ...interface{}) error
	Error(module, logText string, args ...interface{}) error
}

Jump to

Keyboard shortcuts

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