SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
subzero::ILogger Class Referenceabstract

Logger interface. More...

#include <ILogger.h>

+ Inheritance diagram for subzero::ILogger:

Public Member Functions

virtual void logVerbose (std::string key, const std::string format,...)=0
 
virtual void logInfo (std::string key, const std::string format,...)=0
 
virtual void logWarning (std::string key, const std::string format,...)=0
 
virtual void logError (std::string key, const std::string format,...)=0
 
virtual void logFatal (std::string key, const std::string format,...)=0
 
virtual void logVerbose (std::string key, int val)=0
 
virtual void logInfo (std::string key, int val)=0
 
virtual void logWarning (std::string key, int val)=0
 
virtual void logError (std::string key, int val)=0
 
virtual void logFatal (std::string key, int val)=0
 
virtual void logVerbose (std::string key, double val)=0
 
virtual void logInfo (std::string key, double val)=0
 
virtual void logWarning (std::string key, double val)=0
 
virtual void logError (std::string key, double val)=0
 
virtual void logFatal (std::string key, double val)=0
 
virtual void logInfo (std::string key, bool val)=0
 
virtual void logVerbose (std::string key, bool val)=0
 
virtual void logWarning (std::string key, bool val)=0
 
virtual void logError (std::string key, bool val)=0
 
virtual void logFatal (std::string key, bool val)=0
 
virtual void logInfo (std::string key, frc::Pose2d &val)=0
 
virtual void logVerbose (std::string key, frc::Pose2d &val)=0
 
virtual void logWarning (std::string key, frc::Pose2d &val)=0
 
virtual void logError (std::string key, frc::Pose2d &val)=0
 
virtual void logFatal (std::string key, frc::Pose2d &val)=0
 
virtual void logInfo (std::string key, wpi::Sendable *val)=0
 
virtual void logVerbose (std::string key, wpi::Sendable *val)=0
 
virtual void logWarning (std::string key, wpi::Sendable *val)=0
 
virtual void logError (std::string key, wpi::Sendable *val)=0
 
virtual void logFatal (std::string key, wpi::Sendable *val)=0
 

Protected Member Functions

std::string levelToString (Logging::Level level) const
 
std::string formatString (const std::string format, va_list ap)
 
std::string poseToString (const frc::Pose2d &pose)
 
bool shouldLog (Logging::Level level)
 

Detailed Description

Logger interface.

Definition at line 19 of file ILogger.h.

Member Function Documentation

◆ formatString()

std::string subzero::ILogger::formatString ( const std::string format,
va_list ap )
inlineprotected

Definition at line 83 of file ILogger.h.

◆ levelToString()

std::string subzero::ILogger::levelToString ( Logging::Level level) const
inlineprotected

Definition at line 64 of file ILogger.h.

◆ logError() [1/6]

virtual void subzero::ILogger::logError ( std::string key,
bool val )
pure virtual

◆ logError() [2/6]

virtual void subzero::ILogger::logError ( std::string key,
const std::string format,
... )
pure virtual

◆ logError() [3/6]

virtual void subzero::ILogger::logError ( std::string key,
double val )
pure virtual

◆ logError() [4/6]

virtual void subzero::ILogger::logError ( std::string key,
frc::Pose2d & val )
pure virtual

◆ logError() [5/6]

virtual void subzero::ILogger::logError ( std::string key,
int val )
pure virtual

◆ logError() [6/6]

virtual void subzero::ILogger::logError ( std::string key,
wpi::Sendable * val )
pure virtual

◆ logFatal() [1/6]

virtual void subzero::ILogger::logFatal ( std::string key,
bool val )
pure virtual

◆ logFatal() [2/6]

virtual void subzero::ILogger::logFatal ( std::string key,
const std::string format,
... )
pure virtual

◆ logFatal() [3/6]

virtual void subzero::ILogger::logFatal ( std::string key,
double val )
pure virtual

◆ logFatal() [4/6]

virtual void subzero::ILogger::logFatal ( std::string key,
frc::Pose2d & val )
pure virtual

◆ logFatal() [5/6]

virtual void subzero::ILogger::logFatal ( std::string key,
int val )
pure virtual

◆ logFatal() [6/6]

virtual void subzero::ILogger::logFatal ( std::string key,
wpi::Sendable * val )
pure virtual

◆ logInfo() [1/6]

virtual void subzero::ILogger::logInfo ( std::string key,
bool val )
pure virtual

◆ logInfo() [2/6]

virtual void subzero::ILogger::logInfo ( std::string key,
const std::string format,
... )
pure virtual

◆ logInfo() [3/6]

virtual void subzero::ILogger::logInfo ( std::string key,
double val )
pure virtual

◆ logInfo() [4/6]

virtual void subzero::ILogger::logInfo ( std::string key,
frc::Pose2d & val )
pure virtual

◆ logInfo() [5/6]

virtual void subzero::ILogger::logInfo ( std::string key,
int val )
pure virtual

◆ logInfo() [6/6]

virtual void subzero::ILogger::logInfo ( std::string key,
wpi::Sendable * val )
pure virtual

◆ logVerbose() [1/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
bool val )
pure virtual

◆ logVerbose() [2/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
const std::string format,
... )
pure virtual

◆ logVerbose() [3/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
double val )
pure virtual

◆ logVerbose() [4/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
frc::Pose2d & val )
pure virtual

◆ logVerbose() [5/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
int val )
pure virtual

◆ logVerbose() [6/6]

virtual void subzero::ILogger::logVerbose ( std::string key,
wpi::Sendable * val )
pure virtual

◆ logWarning() [1/6]

virtual void subzero::ILogger::logWarning ( std::string key,
bool val )
pure virtual

◆ logWarning() [2/6]

virtual void subzero::ILogger::logWarning ( std::string key,
const std::string format,
... )
pure virtual

◆ logWarning() [3/6]

virtual void subzero::ILogger::logWarning ( std::string key,
double val )
pure virtual

◆ logWarning() [4/6]

virtual void subzero::ILogger::logWarning ( std::string key,
frc::Pose2d & val )
pure virtual

◆ logWarning() [5/6]

virtual void subzero::ILogger::logWarning ( std::string key,
int val )
pure virtual

◆ logWarning() [6/6]

virtual void subzero::ILogger::logWarning ( std::string key,
wpi::Sendable * val )
pure virtual

◆ poseToString()

std::string subzero::ILogger::poseToString ( const frc::Pose2d & pose)
inlineprotected

Definition at line 90 of file ILogger.h.

◆ shouldLog()

bool subzero::ILogger::shouldLog ( Logging::Level level)
inlineprotected

Definition at line 97 of file ILogger.h.


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