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/cmake
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
..
DownloadLibCurl.cmake Get processor count properly 4 years ago
DownloadLibSodium.cmake revert download libsodium target name change 4 years ago
FindJemalloc.cmake add forgotten file 4 years ago
FindLibUV.cmake Add FindLibUV and migrate 5 years ago
GenVersion.cmake bump verions of all deps 2 years ago
MacroEnsureOutOfSourceBuild.cmake Prevent in-source-builds with cmake macro 5 years ago
StaticBuild.cmake bump verions of all deps 2 years ago
TargetArch.cmake add forgotten file 5 years ago
Version.cmake Add -DLOKINET_VERSIONTAG to override version tag 2 years ago
add_import_library.cmake Refactor top level cmake file into multiple components 5 years ago
check_for_std_filesystem.cmake Bring back ghc::filesystem for broke AF macos 4 years ago
check_for_std_optional.cmake Don't use std::optional::value() because f u macos 4 years ago
cmake_uninstall.cmake.in add uninstall target (#1340) 4 years ago
coverage.cmake More work on router docker image 5 years ago
cross_compile.cmake make windows fixes 5 years ago
enable_lto.cmake add WITH_LTO option to disble lto on compile time 4 years ago
installer.cmake make it so github sees the repo is gpl3 2 years ago
libatomic.cmake Remove windows linefeeds 3 years ago
ngtcp2_lib.cmake bump ngtcp2 to v0.1.0 tag 2 years ago
solaris.cmake remove all disused platform-specific event loops 5 years ago
static_link.cmake cmake refactor 4 years ago
target_link_libraries_system.cmake Revert "Merge pull request #679 from tewinget/revert-config-refactor" 5 years ago
unix.cmake Remove duplicate handling of jemalloc 3 years ago
win32.cmake match io loop event order on windows/apple to match linux. 2 years ago
win32_installer_deps.cmake move windows nsis parts for cpack into external files 2 years ago