tailwind-to-style 3.1.1 → 3.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -488,6 +488,43 @@ document.head.appendChild(Object.assign(document.createElement('style'), {
488
488
  - **No build step** - Instant development workflow
489
489
  - **Tree-shakeable** - Only import what you use
490
490
 
491
+ ## 🐛 Debugging & Logging
492
+
493
+ By default, all logs are disabled. Enable logging via environment variable:
494
+
495
+ ```bash
496
+ # Enable warnings (performance, cache misses)
497
+ TWSX_LOG_LEVEL=warn npm start
498
+
499
+ # Enable debug logs (detailed processing info)
500
+ TWSX_LOG_LEVEL=debug npm test
501
+
502
+ # Enable only errors
503
+ TWSX_LOG_LEVEL=error npm run dev
504
+
505
+ # Disable all logs (default)
506
+ TWSX_LOG_LEVEL=silent npm start
507
+ ```
508
+
509
+ Or programmatically:
510
+
511
+ ```javascript
512
+ import { logger } from 'tailwind-to-style'
513
+
514
+ // Enable debug logging
515
+ logger.setLevel('debug') // 'debug' | 'info' | 'warn' | 'error' | 'silent'
516
+
517
+ // Check current level
518
+ console.log(logger.getLevel()) // → 'debug'
519
+ ```
520
+
521
+ **Available log levels:**
522
+ - `debug` - Detailed processing information
523
+ - `info` - General information
524
+ - `warn` - Performance warnings, slow operations
525
+ - `error` - Error messages only
526
+ - `silent` - No logging (default)
527
+
491
528
  ## 🆚 Comparison
492
529
 
493
530
  | Feature | tailwind-to-style | Tailwind CSS | CSS-in-JS |