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

Outputs formatted strings to stdout. More...

#include <ConsoleLogger.h>

+ Inheritance diagram for subzero::ConsoleLogger:
+ Collaboration diagram for subzero::ConsoleLogger:

Public Member Functions

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

Static Public Member Functions

static ConsoleLoggergetInstance ()
 

Detailed Description

Outputs formatted strings to stdout.

Remarks
Singleton class

Definition at line 15 of file ConsoleLogger.h.

Member Function Documentation

◆ getInstance()

static ConsoleLogger & subzero::ConsoleLogger::getInstance ( )
inlinestatic

Definition at line 17 of file ConsoleLogger.h.

◆ logError() [1/6]

void subzero::ConsoleLogger::logError ( std::string key,
bool val )
overridevirtual

Implements subzero::ILogger.

◆ logError() [2/6]

void subzero::ConsoleLogger::logError ( std::string key,
const std::string format,
... )
overridevirtual

Implements subzero::ILogger.

◆ logError() [3/6]

void subzero::ConsoleLogger::logError ( std::string key,
double val )
overridevirtual

Implements subzero::ILogger.

◆ logError() [4/6]

void subzero::ConsoleLogger::logError ( std::string key,
frc::Pose2d & val )
overridevirtual

Implements subzero::ILogger.

◆ logError() [5/6]

void subzero::ConsoleLogger::logError ( std::string key,
int val )
overridevirtual

Implements subzero::ILogger.

◆ logError() [6/6]

void subzero::ConsoleLogger::logError ( std::string key,
wpi::Sendable * val )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [1/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
bool val )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [2/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
const std::string format,
... )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [3/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
double val )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [4/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
frc::Pose2d & val )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [5/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
int val )
overridevirtual

Implements subzero::ILogger.

◆ logFatal() [6/6]

void subzero::ConsoleLogger::logFatal ( std::string key,
wpi::Sendable * val )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [1/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
bool val )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [2/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
const std::string format,
... )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [3/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
double val )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [4/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
frc::Pose2d & val )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [5/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
int val )
overridevirtual

Implements subzero::ILogger.

◆ logInfo() [6/6]

void subzero::ConsoleLogger::logInfo ( std::string key,
wpi::Sendable * val )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [1/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
bool val )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [2/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
const std::string format,
... )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [3/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
double val )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [4/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
frc::Pose2d & val )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [5/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
int val )
overridevirtual

Implements subzero::ILogger.

◆ logVerbose() [6/6]

void subzero::ConsoleLogger::logVerbose ( std::string key,
wpi::Sendable * val )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [1/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
bool val )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [2/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
const std::string format,
... )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [3/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
double val )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [4/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
frc::Pose2d & val )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [5/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
int val )
overridevirtual

Implements subzero::ILogger.

◆ logWarning() [6/6]

void subzero::ConsoleLogger::logWarning ( std::string key,
wpi::Sendable * val )
overridevirtual

Implements subzero::ILogger.


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