BlueZero (BØ)
Middleware for distributed applications
Public Types | Public Member Functions | List of all members
b0::logger::LogInterface Class Referenceabstract

Base class to add logging functionalities to nodes. More...

#include <b0/logger/interface.h>

Inheritance diagram for b0::logger::LogInterface:
b0::logger::LocalLogger b0::Node b0::Socket b0::logger::Logger b0::logger::Console b0::resolver::Resolver b0::Publisher b0::ServiceClient b0::ServiceServer b0::Subscriber

Public Types

enum  LogLevel {
  trace = 0, debug = 10, info = 20, warn = 30,
  error = 40, fatal = 50
}
 

Public Member Functions

virtual void log (LogLevel level, std::string message) const =0
 Log a message to the remote logger, with a specified level.
 
template<typename... Arguments>
void log (LogLevel level, std::string const &fmt, Arguments &&... args) const
 Log a message using a format string.
 

Detailed Description

Base class to add logging functionalities to nodes.

Member Enumeration Documentation

◆ LogLevel

The level of logging

Enumerator
trace 

The most verbose level.

debug 

Less verbose than TRACE.

info 

The default level, should not cause too much spam on the console.

warn 

Warning level.

error 

Error level.

fatal 

Fatal error level, after which the node would usually terminate.


The documentation for this class was generated from the following file: