loglineparser

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2025 License: Apache-2.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 LogSpan

type LogSpan struct {
	Text      string   `json:"text"`
	ClassName []string `json:"classname,omitempty"`
}

LogSpan represents a segment of parsed log text with styling information

func ParseLine

func ParseLine(line string) []LogSpan

ParseLine parses a line with ANSI escape sequences and returns LogSpan segments

Jump to

Keyboard shortcuts

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