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.
lokinet/llarp/router
Jason Rhinelander b81f7025c9
Replace logging with oxen-logger
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
..
abstractrouter.hpp set source ip on service nodes for outbound link to not use all interfaces 2 years ago
i_gossiper.hpp add gossip info to systemd status 2 years ago
i_outbound_message_handler.hpp Triggered pumping 3 years ago
i_outbound_session_maker.hpp Replace logging with oxen-logger 2 years ago
i_rc_lookup_handler.hpp separate white/grey list for active/decommissioned nodes. 3 years ago
outbound_message_handler.cpp Replace logging with oxen-logger 2 years ago
outbound_message_handler.hpp convert priority queues 2 years ago
outbound_session_maker.cpp * add establish fail enum 3 years ago
outbound_session_maker.hpp Replace ::Hash nested structs with std::hash specializations 3 years ago
rc_gossiper.cpp add gossip info to systemd status 2 years ago
rc_gossiper.hpp add gossip info to systemd status 2 years ago
rc_lookup_handler.cpp Simplifications & C++17 3 years ago
rc_lookup_handler.hpp separate white/grey list for active/decommissioned nodes. 3 years ago
route_poker.cpp route poker: allow not blackholing routes. 2 years ago
route_poker.hpp Add systemd-resolved dynamic DNS updating 3 years ago
router.cpp Replace logging with oxen-logger 2 years ago
router.hpp set source ip on service nodes for outbound link to not use all interfaces 2 years ago
systemd_resolved.cpp Replace logging with oxen-logger 2 years ago
systemd_resolved.hpp format 3 years ago