mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-11-01 04:30:05 +00:00
Boost.Log -> spdlog - awips and common
This commit is contained in:
parent
3d162f0336
commit
44bcc7dd4c
10 changed files with 82 additions and 103 deletions
|
|
@ -1,16 +1,17 @@
|
|||
#include <scwx/awips/phenomenon.hpp>
|
||||
#include <scwx/util/logger.hpp>
|
||||
|
||||
#include <boost/assign.hpp>
|
||||
#include <boost/bimap.hpp>
|
||||
#include <boost/bimap/unordered_set_of.hpp>
|
||||
#include <boost/log/trivial.hpp>
|
||||
|
||||
namespace scwx
|
||||
{
|
||||
namespace awips
|
||||
{
|
||||
|
||||
static const std::string logPrefix_ = "[scwx::awips::phenomenon] ";
|
||||
static const std::string logPrefix_ = "scwx::awips::phenomenon";
|
||||
static const auto logger_ = util::Logger::Create(logPrefix_);
|
||||
|
||||
typedef boost::bimap<boost::bimaps::unordered_set_of<Phenomenon>,
|
||||
boost::bimaps::unordered_set_of<std::string>>
|
||||
|
|
@ -147,8 +148,7 @@ Phenomenon GetPhenomenon(const std::string& code)
|
|||
{
|
||||
phenomenon = Phenomenon::Unknown;
|
||||
|
||||
BOOST_LOG_TRIVIAL(debug)
|
||||
<< logPrefix_ << "Unrecognized code: \"" << code << "\"";
|
||||
logger_->debug("Unrecognized code: \"{}\"", code);
|
||||
}
|
||||
|
||||
return phenomenon;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue