lokinet/llarp/quic
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).
2022-07-15 22:17:59 -03:00
..
address.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
address.hpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
client.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
client.hpp Add missing client TCP accept/forwarding handlers 2021-04-19 06:59:04 -04:00
connection.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
connection.hpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
endpoint.cpp Crank oxen-mq to (1.2.)11; switch to oxen-encoding 2022-02-17 16:30:17 -04:00
endpoint.hpp add close_reason parameter to quic::Endpoint::close_connection defaulting to emtpy string 2022-01-31 14:43:38 -05:00
io_result.hpp WIP plainquic tunnels 2021-04-19 06:57:45 -04:00
null_crypto.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
null_crypto.hpp Increase null_iv to 8 bytes to avoid ngtcp2 stack corruption 2021-04-19 06:59:06 -04:00
packet.hpp WIP plainquic tunnels 2021-04-19 06:57:45 -04:00
server.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
server.hpp build paths faster and limit path builds at edge router instead of via a time counter for all edges 2021-04-19 06:59:05 -04:00
stream.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
stream.hpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
tunnel.cpp Replace logging with oxen-logger 2022-07-15 22:17:59 -03:00
tunnel.hpp initial commit for #1595 2021-04-19 07:02:46 -04:00