Log

package
v0.0.0-...-a39e8fc Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2022 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Log

type Log struct {
	Error     string
	Err       error
	Warning   string
	Success   string
	Operation string
	Time      int64
}

func NewLog

func NewLog(err, war, suc string, err2 error) *Log

func (*Log) FatalReport

func (l *Log) FatalReport()

func (*Log) Report

func (l *Log) Report()

type LogBook

type LogBook struct {
	ID   int64
	Logs []Log
	Type string
}

func NewLogBook

func NewLogBook(functionType string) *LogBook

func (*LogBook) LogError

func (b *LogBook) LogError(err error, errorText string)

func (*LogBook) LogEvent

func (b *LogBook) LogEvent(log *Log)

func (*LogBook) LogSuccess

func (b *LogBook) LogSuccess(success string)

func (*LogBook) LogWarning

func (b *LogBook) LogWarning(warning string)

func (*LogBook) Logger

func (b *LogBook) Logger(err error, errorText, successText string)

func (*LogBook) ReadLogBook

func (b *LogBook) ReadLogBook()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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