StaticsetSet the global log level for all Logger instances. Overrides environment variable configuration.
The minimum log level to display
StaticresetReset the global log level to use environment-based configuration.
Log an informational message.
The main message to log
Additional arguments to include in the log output
Log an error message with optional error object.
The error message to log
Optionalerror: unknownOptional error object or additional data
Additional arguments to include in the log output
Log a warning message.
The warning message to log
Additional arguments to include in the log output
Alias for warning() method.
The warning message to log
Additional arguments to include in the log output
Log a debug message (only shown when debug level is enabled).
The debug message to log
Additional arguments to include in the log output
Log a trace message (only shown when trace level is enabled).
The trace message to log
Additional arguments to include in the log output
Log a success message with positive visual styling.
The success message to log
Additional arguments to include in the log output
Log a title message with prominent visual styling.
The title message to log
Additional arguments to include in the log output
Log a task message indicating work in progress.
The task message to log
Additional arguments to include in the log output
Log a plain message without any visual styling or symbols.
The plain message to log
Additional arguments to include in the log output
Start an animated spinner with optional text and styling options.
Spinners provide visual feedback for long-running operations. They automatically fall back to simple task messages in JSON mode or when the terminal doesn't support ANSI escape sequences.
Optionaltext: stringText to display alongside the spinner (defaults to "Processing...")
Optionaloptions: Omit<SpinnerOptions, "text">Optional spinner configuration (color, style, etc.)
Update the text of the currently active spinner.
New text to display with the spinner
Stop the current spinner without displaying any completion message.
Complete the current spinner with a specific completion type and message.
Type of completion (success, error, warning, info)
Optionaltext: stringOptional completion message (uses default if not provided)
Complete the current spinner with a success message.
Optionaltext: stringOptional success message
Complete the current spinner with an error message.
Optionaltext: stringOptional error message
Complete the current spinner with a warning message.
Optionaltext: stringOptional warning message
Complete the current spinner with an info message.
Optionaltext: stringOptional info message
Complete the current spinner with an error message (short alias).
Optionaltext: stringOptional error message
Complete the current spinner with a warning message (short alias).
Optionaltext: stringOptional warning message
Complete the current spinner with an info message (short alias).
Optionaltext: stringOptional info message
Optionaltitle: string
Main DevLogr Logger class providing structured logging with visual enhancements.
The Logger class is the heart of DevLogr, offering:
Example: Basic Usage
Example: Spinner Usage
Example: Task Management