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/service
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
..
address.cpp Crank oxen-mq to (1.2.)11; switch to oxen-encoding 2 years ago
address.hpp Replace logging with oxen-logger 2 years ago
async_key_exchange.cpp replace LLARP_PROTO_VERSION macro 2 years ago
async_key_exchange.hpp standardize include format and pragma once 3 years ago
auth.cpp make more platforms ignore libcrypt 2 years ago
auth.hpp add hashed password capability to endpoint auth by file 2 years ago
context.cpp Replace logging with oxen-logger 2 years ago
context.hpp make comments with colins in them not have them in it 2 years ago
convotag.cpp make the lokinet endpoint code work 3 years ago
convotag.hpp wire up snode traffic to quic 3 years ago
endpoint.cpp Move destructor back to .cpp file 2 years ago
endpoint.hpp Move destructor back to .cpp file 2 years ago
endpoint_state.cpp Remove dead code: netns, shell hooks 2 years ago
endpoint_state.hpp Remove dead code: netns, shell hooks 2 years ago
endpoint_types.hpp fix up client to snode codepath 3 years ago
endpoint_util.cpp Replace logging with oxen-logger 2 years ago
endpoint_util.hpp * tweak introset handover timeouts 3 years ago
handler.hpp add MarkAddressOutbound to plainquic 3 years ago
hidden_service_address_lookup.cpp add relayOrder awareness to introset lookups. 3 years ago
hidden_service_address_lookup.hpp make it so lookups dont time out 3 years ago
identity.cpp Replace logging with oxen-logger 2 years ago
identity.hpp replace LLARP_PROTO_VERSION macro 2 years ago
info.cpp Replace logging with oxen-logger 2 years ago
info.hpp Replace logging with oxen-logger 2 years ago
intro.cpp Replace logging with oxen-logger 2 years ago
intro.hpp Replace logging with oxen-logger 2 years ago
intro_set.cpp Replace logging with oxen-logger 2 years ago
intro_set.hpp Replace logging with oxen-logger 2 years ago
lns_tracker.cpp use var::variant and var::visit shims because apple is sux 3 years ago
lns_tracker.hpp Crank oxen-mq to (1.2.)11; switch to oxen-encoding 2 years ago
lookup.cpp make the lokinet endpoint code work 3 years ago
lookup.hpp only inform failure or success of introset lookups when all lookups have returned 3 years ago
name.cpp fix up some retarded bullshit 3 years ago
name.hpp standardize include format and pragma once 3 years ago
outbound_context.cpp handle edge case better 2 years ago
outbound_context.hpp prevent bizare half open state. (#1754) 3 years ago
pendingbuffer.hpp standardize include format and pragma once 3 years ago
protocol.cpp replace LLARP_PROTO_VERSION macro 2 years ago
protocol.hpp replace LLARP_PROTO_VERSION macro 2 years ago
protocol_type.hpp Replace logging with oxen-logger 2 years ago
router_lookup_job.cpp standardize include format and pragma once 3 years ago
router_lookup_job.hpp standardize include format and pragma once 3 years ago
sendcontext.cpp Fix client latency bug; De-shared_ptr IHopHandler queues 3 years ago
sendcontext.hpp Fix client latency bug; De-shared_ptr IHopHandler queues 3 years ago
session.cpp improve log messages about expiring convotags 3 years ago
session.hpp improve log messages about expiring convotags 3 years ago
tag.cpp standardize include format and pragma once 3 years ago
tag.hpp Replace ::Hash nested structs with std::hash specializations 3 years ago
vanity.hpp standardize include format and pragma once 3 years ago