{"repo":"ross-weir/logex","free":true,"listed":false,"github":"https://github.com/ross-weir/logex","clone":"git clone https://github.com/ross-weir/logex.git","description":"logex is a drop-in zig std.log extensions library enabling extra functionality/customization","language":"Zig","stars":14,"topics":["zig","logging","ziglang"],"license":"MIT","category":"analytics","readme_excerpt":"Logex logex (log extensions) is a minimal, extensible logging library for Zig that enhances std.log with additional features while maintaining a simple, drop-in interface. Table of Contents - Features - Install - Quick Start - Appenders - Creating Custom Appenders - Formatting - Runtime Filtering - Environment Variable Configuration - Examples Features - Drop-in Extension : Extends std.log with extra features - easy to add and remove without changing logging calls throughout your project - Extensible Appenders : Comes with console and file appenders, with the ability to implement custom appenders for any logging destination - Customize Formatting : Multiple format options: - Text (compatible with std.log default format) - JSON - Custom (implement your own formatting function) - Runtime filtering : Extends scope/log level filtering with runtime options, this allows for environment variable based filtering similar to env logger from the Rust logging ecosystem - Minimal Impact : logex aims to add minimal overhead by remaining comptime as much as possible like the default std.log implementation Install Add logex as a dependency to your zig project like so: And configure it in your build.zig : Quick Start Removing logex is as simple as removing Logger.logFn and deleting initialzation. Appenders logex comes with two built-in appenders: - Console Appender : Logs to stderr , works the same as the default logFn from std.log - File Appender : Logs to file Creating Custom Appenders You ","default_branch":null,"files":null,"tree":[],"storefront":"/r/ross-weir","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ross-weir/logex/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."}