logs

package
v0.0.0-...-3226cea Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2023 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const BufferSize = 1000

Number of lines to hold for the UI

Variables

View Source
var (
	LogBuffer []LogLine
)

Functions

func EnsureLoggingDir

func EnsureLoggingDir(dataRoot *utils.DirStructure) error

Setup path to login dir

func FinalizeLog

func FinalizeLog()

FinalizeLog finalize logs

func GetDebugInfo

func GetDebugInfo(style string) (data []byte, err error)

GetDebugInfo returns the debugging information.

func GetLogFunc

func GetLogFunc() log.AdapterFunc

GetLogFunc get log listener function

func InitLogs

func InitLogs()

InitLogs initialize logs

Types

type LogLine

type LogLine struct {
	Meta     string
	Content  string
	Severity string
	ID       uint64
}

func GetAllLogsAfterID

func GetAllLogsAfterID(ID uint64) []LogLine

GetAllLogsAfterID returns all login lines after specified ID

Jump to

Keyboard shortcuts

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