logging

package
v0.0.0-...-2e08161 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2025 License: GPL-2.0 Imports: 6 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Custom

func Custom(prefix string, message string, values ...interface{})

func CustomLogger

func CustomLogger(prefix string) *log.Logger

func Error

func Error(message string, values ...interface{})

func Fatal

func Fatal(message string, values ...interface{})

func Info

func Info(message string, values ...interface{})

func Setup

func Setup(logFile string, verbose bool)

func Shutdown

func Shutdown()

func Todo

func Todo(message string, values ...interface{})

func Warning

func Warning(message string, values ...interface{})

Types

type Logging

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

func DefaultLogging

func DefaultLogging() *Logging

func (*Logging) Custom

func (l *Logging) Custom(prefix string, message string, values ...interface{})

func (*Logging) CustomLogger

func (l *Logging) CustomLogger(prefix string) *log.Logger

func (*Logging) Error

func (l *Logging) Error(message string, values ...interface{})

func (*Logging) Fatal

func (l *Logging) Fatal(message string, values ...interface{}) error

func (*Logging) FileClosed

func (l *Logging) FileClosed() bool

func (*Logging) FileCountLimit

func (l *Logging) FileCountLimit() uint8

func (*Logging) Info

func (l *Logging) Info(message string, values ...interface{})

func (*Logging) LogSettings

func (l *Logging) LogSettings(logSettings int)

func (*Logging) Setup

func (l *Logging) Setup(logFile string, verbose bool)

func (*Logging) SetupLoggers

func (l *Logging) SetupLoggers()

func (*Logging) Shutdown

func (l *Logging) Shutdown()

func (*Logging) Todo

func (l *Logging) Todo(message string, values ...interface{})

func (*Logging) Warning

func (l *Logging) Warning(message string, values ...interface{})

func (*Logging) Writer

func (l *Logging) Writer(mw io.Writer)

type LoggingInterface

type LoggingInterface interface {
	Setup(logFile string, verbose bool)
	Shutdown()
	CustomLogger(prefix string) *log.Logger
	Custom(prefix string, message string, values ...interface{})
	Info(message string, values ...interface{})
	Warning(message string, values ...interface{})
	Error(message string, values ...interface{})
	Todo(message string, values ...interface{})
	Fatal(message string, values ...interface{}) error
}

Jump to

Keyboard shortcuts

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