Explore the categorized logging system with runtime controls
JS import (no attribute): call enableLogging() Β· disableLogging() Β· setLogLevel("info") from @keenmate/web-multiselect
Enable and disable logging at runtime. Watch the console as you interact with the multiselect.
JS import (no attribute): setCategoryLevel("DATA", "debug") per category Β· close_on_select={false} keeps the panel open while you watch logs
Enable logging for specific categories only. This example has async search enabled - type to see DATA logs. Try enabling different categories to see different types of logs.
min_search_length={3} gates the search Β· JS callback (no attribute): el.beforeSearchCallback strips accents before the query
Show popular items initially, then switch to web service search. Demonstrates beforeSearchCallback for accent removal.
Here's how to control logging programmatically:
// Import logging utilities
import { enableLogging, setLogLevel, setCategoryLevel, disableLogging }
from '@keenmate/web-multiselect';
// Enable all logging at debug level
enableLogging();
// Set specific log level for all categories
setLogLevel('info'); // 'trace' | 'debug' | 'info' | 'warn' | 'error' | 'silent'
// Enable/disable specific categories
disableLogging(); // First disable all
setCategoryLevel('UI', 'debug'); // Debug only UI operations
setCategoryLevel('DATA', 'info'); // Info level for data operations
setCategoryLevel('INTERACTION', 'silent'); // Disable interaction logs
// Disable all logging (default for production)
disableLogging();
(pick an option anywhere on this page)