ArPiRobot-CoreLib C++
C++ library for ArPiRobot robots
Static Public Member Functions | List of all members
arpirobot::Logger Class Reference

#include <arpirobot/core/log/Logger.hpp>

Static Public Member Functions

static void logDebug (std::string message)
 
static void logInfo (std::string message)
 
static void logWarning (std::string message)
 
static void logError (std::string message)
 
static void logDebugFrom (std::string source, std::string message)
 
static void logInfoFrom (std::string source, std::string message)
 
static void logWarningFrom (std::string source, std::string message)
 
static void logErrorFrom (std::string source, std::string message)
 
static void logNewline ()
 

Detailed Description

Helper class with static methods for logging messages. Log messages will be printed to stdout and sent to a connected DS.

Member Function Documentation

◆ logDebug()

static void arpirobot::Logger::logDebug ( std::string  message)
static

Log a debug message

Parameters
messageThe message to log

◆ logDebugFrom()

static void arpirobot::Logger::logDebugFrom ( std::string  source,
std::string  message 
)
static

Log a debug message from a specific source

Parameters
sourceThe source of a message (often a device name)
messageThe messsage to log

◆ logError()

static void arpirobot::Logger::logError ( std::string  message)
static

Log an error message

Parameters
messageThe message to log

◆ logErrorFrom()

static void arpirobot::Logger::logErrorFrom ( std::string  source,
std::string  message 
)
static

Log a error message from a specific source

Parameters
sourceThe source of a message (often a device name)
messageThe messsage to log

◆ logInfo()

static void arpirobot::Logger::logInfo ( std::string  message)
static

Log an info message

Parameters
messageThe message to log

◆ logInfoFrom()

static void arpirobot::Logger::logInfoFrom ( std::string  source,
std::string  message 
)
static

Log a info message from a specific source

Parameters
sourceThe source of a message (often a device name)
messageThe messsage to log

◆ logNewline()

static void arpirobot::Logger::logNewline ( )
static

Add an empty line to the log

◆ logWarning()

static void arpirobot::Logger::logWarning ( std::string  message)
static

Log a warning message

Parameters
messageThe message to log

◆ logWarningFrom()

static void arpirobot::Logger::logWarningFrom ( std::string  source,
std::string  message 
)
static

Log a warning message from a specific source

Parameters
sourceThe source of a message (often a device name)
messageThe messsage to log

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