log

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DisableColor bool

Functions

func Debug

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

func Detail added in v1.2.0

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

func Error

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

func Fatal

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

func Info

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

func Init

func Init(out io.Writer, logDebug bool, logTrace bool)

func IsLevelTrace added in v1.2.0

func IsLevelTrace() bool

func OpenLogFile

func OpenLogFile(logfile string) (*os.File, error)

func SetDatabase added in v1.0.3

func SetDatabase(dcpool *pgxpool.Pool)

func Trace

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

func Warning

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

Types

type Log

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

type MessageSet added in v1.2.5

type MessageSet struct {
	Messages map[string]struct{}
}

func NewMessageSet added in v1.2.5

func NewMessageSet() *MessageSet

func (*MessageSet) Insert added in v1.2.5

func (d *MessageSet) Insert(msg string) bool

Insert adds a message to the set and returns true if the message was added, false if the set already contained the message.

type SourceLog

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

func NewSourceLog

func NewSourceLog(logfile string) (*SourceLog, error)

func (*SourceLog) Log

func (s *SourceLog) Log(msg string)

Jump to

Keyboard shortcuts

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