Documentation ¶
Index ¶
- Variables
- func InitialiseLogging(logging_dir string)
- func RecoverFunc(after *string, loc log_item.Loc)
- type FakeLogger
- func (l *FakeLogger) Fatal(v ...any)
- func (l *FakeLogger) Fatalf(format string, v ...any)
- func (l *FakeLogger) Fatalln(v ...any)
- func (l *FakeLogger) Flags() int
- func (l *FakeLogger) Output(calldepth int, s string) error
- func (l *FakeLogger) Panic(v ...any)
- func (l *FakeLogger) Panicf(format string, v ...any)
- func (l *FakeLogger) Panicln(v ...any)
- func (l *FakeLogger) Prefix() string
- func (l *FakeLogger) Print(v ...any)
- func (l *FakeLogger) Printf(format string, v ...any)
- func (l *FakeLogger) Println(v ...any)
- func (l *FakeLogger) SetFlags(flag int)
- func (l *FakeLogger) SetOutput(w io.Writer)
- func (l *FakeLogger) SetPrefix(prefix string)
- type LoggerStruct
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 ¶
Types ¶
type FakeLogger ¶
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) 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)
Click to show internal directories.
Click to hide internal directories.