Goby3 3.2.3
2025.05.13
Loading...
Searching...
No Matches
goby::util::logger Namespace Reference

Classes

class  Group
 Defines a group of messages to be sent to the Goby logger. For Verbosity == verbose streams, all entries appear interleaved, but each group is offset with a different color. For Verbosity == gui streams, all groups have a separate subwindow. More...
 
class  GroupSetter
 Helper class for enabling the group(std::string) manipulator. More...
 

Enumerations

enum  Verbosity {
  UNKNOWN = 3 , QUIET = protobuf::GLogConfig::QUIET , WARN = protobuf::GLogConfig::WARN , VERBOSE = protobuf::GLogConfig::VERBOSE ,
  DEBUG1 = protobuf::GLogConfig::DEBUG1 , DEBUG2 = protobuf::GLogConfig::DEBUG2 , DEBUG3 = protobuf::GLogConfig::DEBUG3 , DIE = -1
}
 

Functions

std::ostream & die (std::ostream &os)
 label stream as "error"
 
std::ostream & warn (std::ostream &os)
 label stream as "warning"
 
std::ostream & verbose (std::ostream &os)
 label stream as "verbose"
 
std::ostream & debug1 (std::ostream &os)
 label stream as "debug1"
 
std::ostream & debug2 (std::ostream &os)
 label stream as "debug2"
 
std::ostream & debug3 (std::ostream &os)
 label stream as "debug3"
 
std::ostream & basic_log_header (std::ostream &os, const std::string &group_name)
 used for non tty ostreams (everything but std::cout / std::cerr) as the header for every line
 
std::ostream & operator<< (std::ostream &os, const Group &g)
 
std::ostream & operator<< (std::ostream &os, const GroupSetter &gs)
 
goby::util::FlexOstreamoperator<< (goby::util::FlexOstream &os, const GroupSetter &gs)
 

Variables

std::recursive_mutex mutex
 

Enumeration Type Documentation

◆ Verbosity

Enumerator
UNKNOWN 
QUIET 
WARN 
VERBOSE 
DEBUG1 
DEBUG2 
DEBUG3 
DIE 

Definition at line 70 of file flex_ostreambuf.h.

Function Documentation

◆ basic_log_header()

std::ostream & goby::util::logger::basic_log_header ( std::ostream &  os,
const std::string &  group_name 
)

used for non tty ostreams (everything but std::cout / std::cerr) as the header for every line

◆ debug1()

std::ostream & goby::util::logger::debug1 ( std::ostream &  os)
inline

label stream as "debug1"

Definition at line 58 of file logger_manipulators.h.

◆ debug2()

std::ostream & goby::util::logger::debug2 ( std::ostream &  os)
inline

label stream as "debug2"

Definition at line 61 of file logger_manipulators.h.

◆ debug3()

std::ostream & goby::util::logger::debug3 ( std::ostream &  os)
inline

label stream as "debug3"

Definition at line 64 of file logger_manipulators.h.

◆ die()

std::ostream & goby::util::logger::die ( std::ostream &  os)
inline

label stream as "error"

Definition at line 43 of file logger_manipulators.h.

◆ operator<<() [1/3]

goby::util::FlexOstream & goby::util::logger::operator<< ( goby::util::FlexOstream os,
const GroupSetter gs 
)

◆ operator<<() [2/3]

std::ostream & goby::util::logger::operator<< ( std::ostream &  os,
const Group g 
)

◆ operator<<() [3/3]

std::ostream & goby::util::logger::operator<< ( std::ostream &  os,
const GroupSetter gs 
)
inline

Definition at line 120 of file logger_manipulators.h.

◆ verbose()

std::ostream & goby::util::logger::verbose ( std::ostream &  os)
inline

label stream as "verbose"

Definition at line 55 of file logger_manipulators.h.

◆ warn()

std::ostream & goby::util::logger::warn ( std::ostream &  os)
inline

label stream as "warning"

Definition at line 49 of file logger_manipulators.h.

Variable Documentation

◆ mutex

std::recursive_mutex goby::util::logger::mutex
extern