25 boost::shared_ptr<goby::acomms::DCCLCodec> goby::acomms::DCCLCodec::inst_;
27 std::string goby::acomms::DCCLCodec::glog_encode_group_ =
"goby::acomms::dccl::encode";
28 std::string goby::acomms::DCCLCodec::glog_decode_group_ =
"goby::acomms::dccl::decode";
30 goby::acomms::DCCLCodec::DCCLCodec() : codec_(new
dccl::Codec)
32 glog.
add_group(glog_encode_group_, common::Colors::lt_magenta);
37 dccl::logger::Verbosity verbosity = dccl::logger::ALL;
39 switch (
glog.buf().highest_verbosity())
42 case goby::common::logger::WARN: verbosity = dccl::logger::WARN_PLUS;
break;
43 case goby::common::logger::VERBOSE: verbosity = dccl::logger::INFO_PLUS;
break;
44 case goby::common::logger::DEBUG1: verbosity = dccl::logger::DEBUG1_PLUS;
break;
45 case goby::common::logger::DEBUG2: verbosity = dccl::logger::DEBUG2_PLUS;
break;
46 case goby::common::logger::DEBUG3: verbosity = dccl::logger::DEBUG3_PLUS;
break;
48 dccl::dlog.connect(verbosity,
this, &DCCLCodec::dlog_message);
void add_group(const std::string &name, Colors::Color color=Colors::nocolor, const std::string &description="")
Add another group to the logger. A group provides related manipulator for categorizing log messages...
bool is_quiet() const
do all attached streams have Verbosity == quiet?
common::FlexOstream glog
Access the Goby logger through this object.