logging

package
v3.0.0-...-5669fa1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: GPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Logger = &LoggerStruct{

	log_file:           &filehandler.FileBasic{},
	log_err_file:       &filehandler.FileBasic{},
	log_today_file:     &filehandler.FileBasic{},
	log_today_err_file: &filehandler.FileBasic{},
	comm:               make(chan *log_item.LogItem, 100),
}

Functions

func InitialiseLogging

func InitialiseLogging(logging_dir string)

func RecoverFunc

func RecoverFunc(after *string, loc log_item.Loc)

Types

type FakeLogger

type FakeLogger struct {
	C chan *log_item.LogItem
	// contains filtered or unexported fields
}

func (*FakeLogger) Fatal

func (l *FakeLogger) Fatal(v ...any)

func (*FakeLogger) Fatalf

func (l *FakeLogger) Fatalf(format string, v ...any)

func (*FakeLogger) Fatalln

func (l *FakeLogger) Fatalln(v ...any)

func (*FakeLogger) Flags

func (l *FakeLogger) Flags() int

func (*FakeLogger) Output

func (l *FakeLogger) Output(calldepth int, s string) error

func (*FakeLogger) Panic

func (l *FakeLogger) Panic(v ...any)

func (*FakeLogger) Panicf

func (l *FakeLogger) Panicf(format string, v ...any)

func (*FakeLogger) Panicln

func (l *FakeLogger) Panicln(v ...any)

func (*FakeLogger) Prefix

func (l *FakeLogger) Prefix() string

func (*FakeLogger) Print

func (l *FakeLogger) Print(v ...any)

func (*FakeLogger) Printf

func (l *FakeLogger) Printf(format string, v ...any)

func (*FakeLogger) Println

func (l *FakeLogger) Println(v ...any)

func (*FakeLogger) SetFlags

func (l *FakeLogger) SetFlags(flag int)

func (*FakeLogger) SetOutput

func (l *FakeLogger) SetOutput(w io.Writer)

func (*FakeLogger) SetPrefix

func (l *FakeLogger) SetPrefix(prefix string)

type LoggerStruct

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

func (*LoggerStruct) Engine

func (ls *LoggerStruct) Engine(ctx ftp_context.Context, logging_dir string)

func (*LoggerStruct) Log

func (ls *LoggerStruct) Log(li *log_item.LogItem)

func (*LoggerStruct) LogErr

func (ls *LoggerStruct) LogErr(loc log_item.Loc, err error) error

func (*LoggerStruct) Logf

func (ls *LoggerStruct) Logf(loc log_item.Loc, str string, v ...any)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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