23 #include "logger_manipulators.h" 24 #include "flex_ostream.h" 25 #include "goby/common/time.h" 27 std::ostream& operator<<(std::ostream& os,
const Group& g)
29 os <<
"description: " << g.
description() << std::endl;
36 void GroupSetter::operator()(std::ostream& os)
const 41 flex.set_group(group_);
45 basic_log_header(os, group_);
49 std::ostream& basic_log_header(std::ostream& os,
const std::string& group_name)
53 if (!group_name.empty())
54 os <<
" " << std::setfill(
' ') << std::setw(15) <<
"{" << group_name <<
"}";
62 os.set_unset_verbosity();
Helper class for enabling the group(std::string) manipulator.
static std::string str_from_col(const Colors::Color &c)
String from color enumeration (e,g, red -> "red")
Forms the basis of the Goby logger: std::ostream derived class for holding the FlexOStreamBuf.
std::string goby_time_as_string(const boost::posix_time::ptime &t=goby_time())
Simple string representation of goby_time()
goby::common::Colors::Color color() const
Color to use when displaying this group (for streams that support terminal escape codes only: std::co...
std::string description() const
Human readable description of this group.
Defines a group of messages to be sent to the Goby logger. For Verbosity == verbose streams...