Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ValidColors = []string{
"slate", "gray", "zinc", "neutral", "stone",
"red", "orange", "amber", "yellow", "lime", "green",
"emerald", "teal", "cyan", "sky", "blue", "indigo",
"violet", "purple", "fuchsia", "pink", "rose",
}
ValidColors contains all valid Tailwind CSS 4 colors (22 colors).
Functions ¶
This section is empty.
Types ¶
type Category ¶
type Category string
Category represents the category of a log entry.
func CategoryFromString ¶
CategoryFromString creates a Category from a string, returns default if invalid.
func DefaultCategory ¶
func DefaultCategory() Category
DefaultCategory returns the default category when none is specified.
type Color ¶
type Color string
Color represents a Tailwind CSS color for visual categorization.
func AutoAssignColor ¶
AutoAssignColor automatically assigns a color based on severity.
func ColorFromString ¶
ColorFromString creates a Color from a string, returns empty if invalid.
type Severity ¶
type Severity string
Severity represents the severity level of a log entry. Custom severities are allowed - the standard ones are provided for convenience.
func DefaultSeverity ¶
func DefaultSeverity() Severity
DefaultSeverity returns the default severity when none is specified.
func SeverityFromString ¶
SeverityFromString creates a Severity from a string. Returns the severity as-is (custom severities are allowed). Returns default only if empty.
func (Severity) IsStandard ¶
IsStandard checks if the severity is one of the standard predefined severities.