{"repo":"kala13x/slog","free":true,"listed":false,"github":"https://github.com/kala13x/slog","clone":"git clone https://github.com/kala13x/slog.git","description":"Advanced cross-platform logging library for C/C++","language":"C","stars":153,"topics":["verbose","verbosity-level","logging","logger","file-logger","file-logging","log","logging-library","formatting","libray"],"license":null,"category":"analytics","readme_excerpt":"SLOG - Logging Library slog is a cross-platform and thread-safe logging library for C/C++ that offers rich functionality, including the ability to easily control verbosity levels, tag and colorize output, log to files, change configuration parameters on the fly, and provide an optional log callback for log collection, among many other features. Despite its extensive capabilities, the primary goal of slog is to remain as stable as possible while delivering maximum performance. For more details, refer to the src/slog.h file to check the release version you are using. Installation Installation is possible with CMake for all platforms. If for some reason CMake is not available on your system, you can try the Makefile that comes with the project (Linux only): Usage If you want to use slog in your C/C++ application, include slog.h header in your source file and link the slog library with -lslog linker flag while compiling your project. See the example directory for more information. Logging flags SLog has logging flags to control log levels and to display messages with tagged and colorized output. - SLOG NOTAG - SLOG LIVE - SLOG INFO - SLOG WARN - SLOG DEBUG - SLOG TRACE - SLOG ERROR - SLOG FATAL Simple API At first, you should initialize slog: - The first argument is the name of the file where we want to save logs. - The second argument is the logging level flags which are allowed to print. - Third argument is a thread safety flag (1 enabled, 0 disabled) . If the thread safety fla","default_branch":null,"files":null,"tree":[],"storefront":"/r/kala13x","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kala13x/slog/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."}