Help us shape the future of Go! Take the 2026 Go Developer Survey

logscore

package
v1.0.2 Latest Latest
Warning

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

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

Documentation

Overview

Package logscore assigns per-character importance scores to a log line and a single aggregate score for the whole line. The scoring is pure: no I/O, no UI dependencies, no global mutable state. It encodes Jenking's conventions for what makes a Jenkins build log line "interesting" (severity keywords, standalone numeric values, stage banners) so the preview minimap and any future heat-map rendering share a single source of truth.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ScoreImportance

func ScoreImportance(line string) ([]float64, float64)

ScoreImportance returns per-rune importance scores in [0,1] and an aggregate line score in [0,1]. The aggregate weights peak more than mean so a single bright keyword pulls the line up.

Types

This section is empty.

Jump to

Keyboard shortcuts

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