Simplified logger configuration, it no longer depends on Wt

This commit is contained in:
emeric
2023-11-24 16:23:31 +01:00
parent 6f47c32ac2
commit 9060c0d925
104 changed files with 2603 additions and 2598 deletions
@@ -61,7 +61,7 @@ static void dumpTracksRecommendation(Session session, Recommendation::IRecommend
for (auto artist : track->getArtists({ TrackArtistLinkType::Artist }))
res += " - " + artist->getName();
for (auto cluster : track->getClusters())
res += " {" + cluster->getType()->getName() + "-" + std::string{ cluster->getName() } + "}";
res += " {" + std::string{ cluster->getType()->getName() } + "-" + std::string{ cluster->getName() } + "}";
return res;
};
@@ -131,7 +131,7 @@ int main(int argc, char* argv[])
namespace po = boost::program_options;
// log to stdout
Service<Logger> logger{ std::make_unique<StreamLogger>(std::cout) };
Service<ILogger> logger{ std::make_unique<StreamLogger>(std::cout) };
po::options_description desc{ "Allowed options" };
desc.add_options()