mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
b81f7025c9
Replaces custom logging system with spdlog-based oxen logging. This commit mainly replaces the backend logging with the spdlog-based system, but doesn't (yet) convert all the existing LogWarn, etc. to use the new format-based logging. New logging statements will look like: llarp::log::warning(cat, "blah: {}", val); where `cat` should be set up in each .cpp or cluster of .cpp files, as described in the oxen-logging README. As part of spdlog we get fmt, which gives us nice format strings, where are applied generously in this commit. Making types printable now requires two steps: - add a ToString() method - add this specialization: template <> constexpr inline bool llarp::IsToStringFormattable<llarp::Whatever> = true; This will then allow the type to be printed as a "{}" value in a fmt::format string. This is applied to all our printable types here, and all of the `operator<<` are removed. This commit also: - replaces various uses of `operator<<` to ToString() - replaces various uses of std::stringstream with either fmt::format or plain std::string - Rename some to_string and toString() methods to ToString() for consistency (and to work with fmt) - Replace `stringify(...)` and `make_exception` usage with fmt::format (and remove stringify/make_exception from util/str.hpp). |
2 years ago | |
---|---|---|
.. | ||
cpr@aac5058a15 | 3 years ago | |
cxxopts@6fa46a7488 | 4 years ago | |
ghc-filesystem@2a8b380f8d | 3 years ago | |
ngtcp2@026b8434eb | 2 years ago | |
nlohmann@db78ac1d77 | 4 years ago | |
oxen-encoding@79193e58fb | 2 years ago | |
oxen-logging@0fc1b3528a | 2 years ago | |
oxen-mq@eadb37c765 | 2 years ago | |
pybind11@8de7772cc7 | 3 years ago | |
sqlite_orm@4c6a46bd4d | 3 years ago | |
uvw@36fdf810a6 | 3 years ago | |
CMakeLists.txt | 2 years ago |