# tui-logger | gin66 | Knowledge Base | Instagit

Logger and Widget for rust's ratatui crate

GitHub Stars: 300

Repository: https://github.com/gin66/tui-logger

---

## Articles

### [How to Toggle Hiding of Targets with Filters Set to Off in tui-logger](/gin66/tui-logger/how-to-toggle-hiding-of-targets-with-disabled-filters)

Learn how to toggle the visibility of tui-logger targets with filters set to Off using the Space key. Easily manage your log output for better debugging.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Focus the tui-logger Widget on a Specific Target Using the 'f' Key](/gin66/tui-logger/how-to-focus-widget-on-specific-target-using-f-key)

Learn to focus the tui-logger widget on a specific target using the f key command. Isolate and highlight targets for better log visibility and debugging in your terminal applications.

- Tags: how-to-guide
- Published: 2026-03-02

### [EWIDT Display Format in tui-logger: Interpreting the Target Selector](/gin66/tui-logger/what-is-ewidt-display-format-and-how-to-interpret)

Understand the EWIDT display format in tui-logger. Learn how to interpret Error, Warn, Info, Debug, and Trace log levels in the target selector to control your logs.

- Tags: deep-dive
- Published: 2026-03-02

### [How to Use tui-logger with the log Crate and env_logger as Formatter](/gin66/tui-logger/use-tui-logger-with-log-crate-and-env_logger-formatter)

Learn to use tui-logger with the Rust log crate and env_logger formatter. Integrate effortlessly by wrapping env_logger's formatting logic into tui-logger's circular buffers for enhanced logging.

- Tags: how-to-guide
- Published: 2026-03-02

### [What Happens to Log Messages That Exceed Circular Buffer Capacity in tui-logger Versions Before 0.13](/gin66/tui-logger/what-happens-to-logs-exceeding-buffer-capacity-before-v0-13)

Discover what happens to log messages exceeding circular buffer capacity in tui-logger before version 0.13. Learn about silent overwrites and lost data.

- Tags: internals
- Published: 2026-03-02

### [How to Programmatically Configure Different Log Levels for Different Targets in tui-logger](/gin66/tui-logger/how-to-programmatically-configure-log-levels-for-targets)

Learn to programmatically configure different log levels for specific targets in tui-logger. Control log capture and UI display with set_level_for_target for efficient debugging.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Use TuiLoggerWidget Instead of the Smart Widget in tui-logger](/gin66/tui-logger/how-to-use-standard-widget-instead-of-smart-widget)

Learn to use TuiLoggerWidget instead of the smart widget in tui-logger. Instantiate TuiLoggerWidget directly and configure it for custom styling and output formatting in your ratatui app.

- Tags: how-to-guide
- Published: 2026-03-02

### [Understanding the Performance Impact of move_events() in tui-logger](/gin66/tui-logger/performance-impact-of-move_events-and-trigger-conditions)

Explore the performance impact of move_events() in tui-logger. Learn how this O(N) function runs in a background thread to maintain zero blocking on your main logging path.

- Tags: performance
- Published: 2026-03-02

### [How the transition() Function Maps Keyboard Events to Widget State in tui-logger](/gin66/tui-logger/how-transition-function-maps-keyboard-events-to-widget-states)

Discover how tui-logger's transition() function maps keyboard events to widget state changes, updating flags, indexes, and log levels.

- Tags: internals
- Published: 2026-03-02

### [How to Hide or Show the Target Selector Widget at Runtime in tui-logger](/gin66/tui-logger/how-to-hide-show-target-selector-widget-at-runtime)

Control the target selector widget in tui-logger at runtime. Learn how to hide or show the widget by flipping the internal hide target boolean flag using the HideKey event.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Configure Hot and Main Buffer Depths for High-Throughput Logging in tui-logger](/gin66/tui-logger/how-to-configure-hot-and-main-buffer-depths-for-high-throughput)

Configure hot and main buffer depths in tui-logger before init. Prevent message loss during high-volume logging by resizing circular buffers with set_hot_buffer_depth and set_buffer_depth.

- Tags: how-to-guide
- Published: 2026-03-02

### [Page Mode Scrolling in the tui-logger Smart Widget: Timestamp-Referenced Navigation Explained](/gin66/tui-logger/what-is-page-mode-scrolling-and-timestamp-referenced-scrolling)

Master page mode scrolling in tui-logger's smart widget. Discover stable timestamp-referenced navigation using LinePointer for efficient log history exploration.

- Tags: deep-dive
- Published: 2026-03-02

### [How to Initialize tui-logger with Crossterm or Termion: A Complete Guide](/gin66/tui-logger/how-to-initialize-tui-logger-with-different-backend-terminals)

Learn how to initialize tui-logger with Crossterm or Termion backends. This guide shows you how to select your terminal and set up tui-logger for your application.

- Tags: how-to-guide
- Published: 2026-03-02

### [Tui-Logger Smart Widget Keyboard Shortcuts: Complete Reference Guide](/gin66/tui-logger/what-are-keyboard-shortcuts-in-tui-logger-smart-widget)

Master tui-logger smart widget keyboard shortcuts for efficient navigation and control. Explore a complete guide covering all 12 essential commands for enhanced productivity.

- Tags: api-reference
- Published: 2026-03-02

### [How tui-logger Handles Lost Messages When the Circular Buffer Overflows](/gin66/tui-logger/how-tui-logger-handles-lost-messages-on-buffer-overflow)

Discover how tui-logger handles lost messages during buffer overflows. It detects overflows and injects a synthetic overrun warning detailing discarded messages.

- Tags: internals
- Published: 2026-03-02

### [How to Implement File Logging with TUI Display Using TuiLoggerFile](/gin66/tui-logger/how-to-implement-file-logging-with-tui-display)

Learn how to implement file logging with TUI display using TuiLoggerFile. Configure file dumps and register logs for seamless disk writes and TUI display.

- Tags: how-to-guide
- Published: 2026-03-02

### [How Hash Table-Based Enable/Disable Detection Optimizes tui-logger Performance](/gin66/tui-logger/how-hash-table-detection-optimizes-tui-logger-performance)

Discover how tui-logger uses hash table-based enable/disable detection to optimize performance by caching log filters. Reduce overhead and boost speed.

- Tags: performance
- Published: 2026-03-02

### [How to Configure Log Levels Using Environment Variables with `set_env_filter_from_env` in tui-logger](/gin66/tui-logger/how-to-configure-log-levels-using-environment-variables)

Easily configure tui-logger log levels using environment variables. Call set_env_filter_from_env to parse RUST_LOG and apply filter directives for your Rust application.

- Tags: how-to-guide
- Published: 2026-03-02

### [Difference Between CAPTURE and SHOW Filters in tui-logger Smart Widget](/gin66/tui-logger/difference-between-capture-and-show-filters-in-smart-widget)

Understand the crucial difference between CAPTURE and SHOW filters in tui-logger. Learn how to control displayed logs and recorded log levels for efficient debugging.

- Tags: deep-dive
- Published: 2026-03-02

### [How to Use TuiTracingSubscriberLayer to Collect Tracing Events in a TUI App](/gin66/tui-logger/how-to-use-tuitracingsubscriberlayer-for-tracing-events)

Learn to collect tracing events in your TUI app using TuiTracingSubscriberLayer. Integrate with tui-logger for real-time terminal display of tracing data. Enhance your app's observability now.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Integrate tui-logger with slog Using TuiSlogDrain](/gin66/tui-logger/how-to-integrate-tui-logger-with-slog-ecosystem-using-tuislogdrain)

Seamlessly integrate tui-logger with slog using TuiSlogDrain. Enable slog-support, initialize the logger, and bridge records to your terminal UI for enhanced debugging.

- Tags: how-to-guide
- Published: 2026-03-02

### [How Target-Based Log Filtering Works in tui-logger: A Complete Configuration Guide](/gin66/tui-logger/how-target-based-log-filtering-works-and-how-to-configure)

Master target-based log filtering in tui-logger. Learn how its three-layered system provides programmatic and interactive control over log levels for the buffer and UI. A complete configuration guide.

- Tags: how-to-guide
- Published: 2026-03-02

### [How to Implement a Custom LogFormatter for TUI-Logger in Rust](/gin66/tui-logger/how-to-implement-custom-logformatter-for-tui-widget)

Learn to implement a custom LogFormatter for tui-logger in Rust. This guide shows you how to change log output in the TUI widget using trait implementation and widget injection.

- Tags: how-to-guide
- Published: 2026-03-02

### [How tui-logger’s Dual Circular Buffer Architecture Prevents Logging Deadlocks](/gin66/tui-logger/how-does-tui-logger-dual-circular-buffer-architecture-prevent-logging-deadlocks)

Learn how tui-logger's dual circular buffer architecture prevents logging deadlocks by isolating writes and atomically swapping buffers. Maintain high performance and avoid lock contention.

- Tags: architecture
- Published: 2026-03-02

