event

package
v0.0.57 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2022 License: GPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(name string, description string)

func Error

func Error(name string, description string)

func Fatal

func Fatal(name string, description string)

func FlushAllLogs added in v0.0.28

func FlushAllLogs() error

func FlushOldLogs added in v0.0.28

func FlushOldLogs() error

func Info

func Info(name string, description string)

func InitLogger

func InitLogger(logger *logrus.Logger)

func Trace

func Trace(name string, description string)

func Warn

func Warn(name string, description string)

Types

type LogEvent added in v0.0.56

type LogEvent struct {
	Id          uint              `json:"id"`
	Name        string            `json:"name"`
	Description string            `json:"description"`
	Level       database.LogLevel `json:"level"`
	Time        uint64            `json:"time"` // Time in unixMillis
}

Alternate struct which uses unix-millis as the time instead of the time struct

func GetAllLogsUnixMillis added in v0.0.56

func GetAllLogsUnixMillis() (logs []LogEvent, err error)

Returns all logs from the database but uses unix-millis as the time format

Jump to

Keyboard shortcuts

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