A log-rush logging client for c++
Todo CMake install Todo conan install
add the following lines to yout CMakeLists.txt
find_package(logrush)
⋮
# in your target_link_libraries
target_link_libraries(<TARGET> logrush::logrush)
#include <logrush/logrush.h>
⋮
logrush::LogRushClient client = logrush::LogRushClient("<server address>");
// Batch Stream
auto stream = client.register_stream("<Stream Name>", 5 /* Batch size */, "" /* id */, ""/* key */);
// Basic Stream
auto stream = client.register_stream("<Stream Name>", "" /* id */, ""/* key */);
id and key should be empty strings except you want to reuse the stream
stream.log("<message>");
client.unregister(stream);
in the examples directory you can find two simple programms which use the logrush lib.
this repository contains two logging sinks for the spdlog library one for basic logging and one for batched logging.