logext

package
v1.26.1 Latest Latest
Warning

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

Go to latest
Published: May 15, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

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
)
View Source
var Keyword = lipgloss.NewStyle().
	Padding(0, 1).
	Foreground(lipgloss.AdaptiveColor{Light: "#FF4672", Dark: "#ED567A"}).
	Background(lipgloss.AdaptiveColor{Light: "#DDDADA", Dark: "#242424"}).
	Render

Keyword should be used to highlight code.

Functions

func NewConditionalWriter added in v1.2.0

func NewConditionalWriter(condition bool) io.Writer

NewConditionalWriter creates a new log writer that only writes when the given condition is met or debug is enabled.

func NewWriter

func NewWriter() io.Writer

NewWriter creates a new log writer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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