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 | |
---|---|---|
.. | ||
messages | 2 years ago | |
bucket.hpp | 4 years ago | |
context.cpp | 3 years ago | |
context.hpp | 4 years ago | |
dht.cpp | 4 years ago | |
dht.h | 4 years ago | |
explorenetworkjob.cpp | 3 years ago | |
explorenetworkjob.hpp | 4 years ago | |
kademlia.hpp | 4 years ago | |
key.hpp | 2 years ago | |
localrouterlookup.cpp | 2 years ago | |
localrouterlookup.hpp | 4 years ago | |
localserviceaddresslookup.cpp | 2 years ago | |
localserviceaddresslookup.hpp | 4 years ago | |
localtaglookup.cpp | 4 years ago | |
localtaglookup.hpp | 4 years ago | |
message.cpp | 4 years ago | |
message.hpp | 2 years ago | |
node.hpp | 4 years ago | |
publishservicejob.cpp | 4 years ago | |
publishservicejob.hpp | 4 years ago | |
recursiverouterlookup.cpp | 4 years ago | |
recursiverouterlookup.hpp | 4 years ago | |
serviceaddresslookup.cpp | 4 years ago | |
serviceaddresslookup.hpp | 4 years ago | |
taglookup.cpp | 4 years ago | |
taglookup.hpp | 4 years ago | |
tx.hpp | 2 years ago | |
txholder.hpp | 4 years ago | |
txowner.hpp | 4 years ago |