{"repo":"linkdd/logfmtxx","free":true,"listed":false,"github":"https://github.com/linkdd/logfmtxx","clone":"git clone https://github.com/linkdd/logfmtxx.git","description":"Header only C++23 structured logging library using logfmt","language":"C++","stars":72,"topics":["cpp","cpp23","logfmt","logging","logging-library","structured-logging"],"license":"0BSD","category":"analytics","readme_excerpt":"logfmtxx Header-only C++23 structured logging library using the logfmt format. Installation Just copy the include/logfmtxx.hpp in your project. Or with Shipp, add it to your dependencies: Or with CMake's FetchContent : Usage First, include the relevant headers: Then create a logger: Or with a functor to avoid allocations: Or with global fields: Then, call the log() method: The result should be: You can add extra fields as well: The result should be: If your type implements as string() , it can be used with a field: Benchmark CPU: 13th Gen Intel(R) Core(TM) i7-13700K 3.40 GHz Results: ns/op op/s err% total benchmark --------------------: --------------------: --------: ----------: :---------- 7,326.07 136,498.88 1.1% 0.09 logger.info with context (fast) 7,169.35 139,482.70 0.7% 0.09 logger.info without context (fast) 9,707.22 103,016.06 1.3% 0.03 logger.info with context (slow) 9,448.67 105,835.01 0.7% 0.03 logger.info without context (slow) License This software is released under the terms of the BSD 0-clause License.","default_branch":null,"files":null,"tree":[],"storefront":"/r/linkdd","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/linkdd/logfmtxx/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."}