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 | |
---|---|---|
.. | ||
address.cpp | 2 years ago | |
address.hpp | 2 years ago | |
async_key_exchange.cpp | 2 years ago | |
async_key_exchange.hpp | 3 years ago | |
auth.cpp | 2 years ago | |
auth.hpp | 2 years ago | |
context.cpp | 2 years ago | |
context.hpp | 2 years ago | |
convotag.cpp | 3 years ago | |
convotag.hpp | 3 years ago | |
endpoint.cpp | 2 years ago | |
endpoint.hpp | 2 years ago | |
endpoint_state.cpp | 2 years ago | |
endpoint_state.hpp | 2 years ago | |
endpoint_types.hpp | 3 years ago | |
endpoint_util.cpp | 2 years ago | |
endpoint_util.hpp | 3 years ago | |
handler.hpp | 3 years ago | |
hidden_service_address_lookup.cpp | 3 years ago | |
hidden_service_address_lookup.hpp | 3 years ago | |
identity.cpp | 2 years ago | |
identity.hpp | 2 years ago | |
info.cpp | 2 years ago | |
info.hpp | 2 years ago | |
intro.cpp | 2 years ago | |
intro.hpp | 2 years ago | |
intro_set.cpp | 2 years ago | |
intro_set.hpp | 2 years ago | |
lns_tracker.cpp | 3 years ago | |
lns_tracker.hpp | 2 years ago | |
lookup.cpp | 3 years ago | |
lookup.hpp | 3 years ago | |
name.cpp | 3 years ago | |
name.hpp | 3 years ago | |
outbound_context.cpp | 2 years ago | |
outbound_context.hpp | 3 years ago | |
pendingbuffer.hpp | 3 years ago | |
protocol.cpp | 2 years ago | |
protocol.hpp | 2 years ago | |
protocol_type.hpp | 2 years ago | |
router_lookup_job.cpp | 3 years ago | |
router_lookup_job.hpp | 3 years ago | |
sendcontext.cpp | 3 years ago | |
sendcontext.hpp | 3 years ago | |
session.cpp | 3 years ago | |
session.hpp | 3 years ago | |
tag.cpp | 3 years ago | |
tag.hpp | 3 years ago | |
vanity.hpp | 3 years ago |