Documentation
¶
Overview ¶
Package logext contains log extensions.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // URL is used to style URLs. URL = lipgloss.NewStyle(). Foreground(lipgloss.Color("3")). Render // Warning is used to style warnings for the user. Warning = lipgloss.NewStyle(). Foreground(lipgloss.Color("11")). Bold(true). Render // Keyword should be used to highlight code. Keyword = lipgloss.NewStyle(). Foreground(lipgloss.Color("#ED567A")). Background(lipgloss.Color("#242424")). Render // Faint is fainted, italic, text. Faint = lipgloss.NewStyle(). Italic(true). Faint(true). Render )
Functions ¶
func NewConditionalWriter ¶
NewConditionalWriter creates a new log writer that only writes when the given condition is met or debug is enabled.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.