Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ColoredSegment ¶ added in v1.1.0
ColoredSegment represents a text segment with its color
func ErrorSegment ¶ added in v1.1.0
func ErrorSegment(text string) ColoredSegment
func HighlightSegment ¶ added in v1.1.0
func HighlightSegment(text string) ColoredSegment
func InfoSegment ¶ added in v1.1.0
func InfoSegment(text string) ColoredSegment
type Logger ¶
Logger wraps the standard logger with custom formatting
func (*Logger) MultiColor ¶ added in v1.1.0
func (l *Logger) MultiColor(level LogLevel, segments ...ColoredSegment)
MultiColor logs a message with multiple color segments
type Option ¶ added in v1.1.0
type Option func(*Logger)
Option is a functional option for configuring the logger
func WithLogLevel ¶ added in v1.3.0
WithLogLevel sets the logging level
func WithTimestamp ¶ added in v1.1.0
func WithTimestamp() Option
WithTimestamp enables timestamps in log output
Click to show internal directories.
Click to hide internal directories.