2024-06-11 20:03:10 -04:00
2024-09-14 21:50:46 -04:00
2024-06-16 11:07:24 -07:00
2025-06-04 13:54:50 -05:00
2024-08-13 16:05:40 -04:00

jlog - Just Barely Logging

jlog is a C++ library for logging to file, console, and event callbacks.

Static Badge

Features

  • Modern (C++20)
  • Static Library
  • Color Output (Now in RGB!)
  • Logs to file AND console!
  • Idiomatic Event callback for hooking into your game engine gui!
  • GCC and MSVC support
  • No more macros for traceback!

Installation

Include this repository as a CPM dependency, and link against the library.

CPMAddPackage(
        NAME jlog
        URL https://git.redacted.cc/josh/jlog/archive/Prerelease-7.zip
)
# ...
include_directories(${jlog_SOURCE_DIR}/include)
# ...
target_link_libraries(YourProgram ... jlog)


Usage

Using jlog is straightforward:


#include <jlog/jlog.hpp>

int main() {
    jlog::info("This is barely useful information.");
    jlog::debug("Debugging Information");
    jlog::verbose("Yadda Yadda Yadda");
    jlog::warning("Slight miscalculation!");
    jlog::error("Oops, something went wrong.");
    jlog::fatal("Unrecoverable Error!!!");

    return 0;
}

Output

Should be sample output...

TODO

  • Documentation
  • Thread Safety
  • Memory Safety
  • Stream Support

License

This software is written and developed by Josh O'Leary @ Redacted Software 2024. This work is dedicated to the public domain.

Contributing

Send'em pull requests.

Description
Yet Another C++ Logging Library
Readme 406 KiB
Languages
C++ 86.4%
CMake 13.6%