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: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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