log4u

package module
v0.0.0-...-e415ee0 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2023 License: MIT Imports: 8 Imported by: 0

README

log4u

Logging Framework

Documentation

Index

Constants

View Source
const (
	Ldate         = 1 << iota     // the date in the local time zone: 2009-01-23
	Ltime                         // the time in the local time zone: 01:23:23
	Lmicroseconds                 // microsecond resolution: 01:23:23.123123.  assumes Ltime.
	Llongfile                     // full file name and line number: /a/b/c/d.go:23
	Lshortfile                    // final file name element and line number: d.go:23. overrides Llongfile
	LUTC                          // if Ldate or Ltime is set, use UTC rather than the local time zone
	Lmsgprefix                    // move the "prefix" from the beginning of the line to before the message
	LstdFlags     = Ldate | Ltime // initial values for the standard logger
)

Variables

This section is empty.

Functions

func DEBUG

func DEBUG(v ...any)

func DEBUGF

func DEBUGF(format string, v ...any)

func ERROR

func ERROR(v ...any)

func ERRORF

func ERRORF(format string, v ...any)

func INFO

func INFO(v ...any)

func INFOF

func INFOF(format string, v ...any)

func OUT

func OUT(v ...any)

func SetLevel

func SetLevel(level LogLevel)

func WARN

func WARN(v ...any)

func WARNF

func WARNF(format string, v ...any)

func Wait

func Wait()

Types

type Log4u

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

func Inject

func Inject() *Log4u

func (*Log4u) DEBUG

func (l *Log4u) DEBUG(v ...any)

func (*Log4u) DEBUGF

func (l *Log4u) DEBUGF(format string, v ...any)

func (*Log4u) ERROR

func (l *Log4u) ERROR(v ...any)

func (*Log4u) ERRORF

func (l *Log4u) ERRORF(format string, v ...any)

func (*Log4u) INFO

func (l *Log4u) INFO(v ...any)

func (*Log4u) INFOF

func (l *Log4u) INFOF(format string, v ...any)

func (*Log4u) OUT

func (l *Log4u) OUT(v ...any)

func (*Log4u) WARN

func (l *Log4u) WARN(v ...any)

func (*Log4u) WARNF

func (l *Log4u) WARNF(format string, v ...any)

type LogLevel

type LogLevel uint8

LogLevel Log level parameter type

const (
	ErrorLevel LogLevel = iota
	WarnLevel
	InfoLevel
	DebugLevel
	OutLevel
)

type Logger

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

func (*Logger) Output

func (l *Logger) Output(s, file string, line int)

Jump to

Keyboard shortcuts

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