Creates a new Logger instance with the specified options.
Optionaloptions: boolean | LoggerOptions = {}Logger configuration options or verbose flag
OptionalwriteToDisk: booleanWhether to write to disk (backward compatibility)
OptionaluseColors: booleanWhether to use colors (backward compatibility)
Chainable style builder for creating styled strings. Pre-initialized for performance.
Chainable style builder
Alias for the style builder (s). Provides a more descriptive name for the chainable style API.
Chainable style builder
Gets the current theme configuration.
Gets the colors enabled setting.
Whether colors are enabled
Gets the verbose mode setting.
Whether verbose mode is enabled
Add to existing context (merges with existing).
Context to merge
Add tags to existing tags.
Tags to add
Applies a preset style to text.
Prints text in a decorative box with customizable borders.
Text to display inside the box (supports multiline)
Box formatting options
Optionalborder?: "single" | "double" | "rounded" | "heavy"Border style: 'single' | 'double' | 'rounded' | 'heavy' (default: 'single')
OptionalborderColor?: string[]Colors for the box borders
Optionalcolor?: string[]Colors for the text inside the box
Optionalpadding?: numberPadding around the text (default: 1)
Creates a reusable color function (legacy method).
Applies colors to text using ANSI escape codes.
Applies different colors to specific parts of a message (legacy method).
Counts the number of times this method is called with the same label.
Label for the counter (default: 'default')
Logs a debug message. Enhanced to support angle bracket syntax
Main Logger class that provides a unified logging interface.
This class automatically detects the runtime environment (Node.js or Browser) and instantiates the appropriate underlying logger implementation. It manages transports for flexible log delivery to various destinations and provides multiple styling APIs for rich text formatting.
Logger
Example