{"repo":"omdxp/jslog","free":true,"listed":false,"github":"https://github.com/omdxp/jslog","clone":"git clone https://github.com/omdxp/jslog.git","description":"A structured logging library for Node.js applications inspired by Go's log/slog.","language":"TypeScript","stars":11,"topics":["slog","structured-logging","logging"],"license":"MIT","category":"analytics","readme_excerpt":"@omdxp/jslog A structured logging library for Node.js that makes Go's log/slog look basic. Why jslog? - Everything Go's slog has + variadic parameters (NEW in v1.7.0!) - Plus 20+ features Go slog doesn't have - File logging with auto-rotation - Buffering, sampling, filtering - Async handlers - Middleware pattern - Metrics collection - Rate limiting & deduplication - Colorful output - And way more... See full comparison in SUPERIORITY.md Features Core Features (Like Go slog) - Structured Logging : Key-value pairs for easy parsing and analysis - Multiple Handlers : JSON, Text, Multi, and Discard handlers - Log Levels : DEBUG, INFO, WARN, ERROR with dynamic level control - Contextual Logging : Add persistent attributes and groups to loggers - TypeScript First : Full type safety and IntelliSense support - Modern Build System : Built with tsup and tsx - Custom Handlers : Easy to implement custom log handlers - Attribute Transformation : ReplaceAttr function for redacting or transforming values - Rich Attribute Types : String, Int, Float, Bool, Time, Duration, Group, Error, and more - Nested Groups : Organize related attributes hierarchically - Dynamic Levels : Change log levels at runtime with LevelVar Advanced Features (Go slog can't do this!) - Source Location Tracking : Automatic file/line tracking with zero dependencies - ColorHandler : Beautiful, colorful console output - PrettyHandler : Format nested objects with proper indentation - FileHandler : Write to files with automat","default_branch":null,"files":null,"tree":[],"storefront":"/r/omdxp","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/omdxp/jslog/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}