SubZero Common
Common library components for an FRC CommandRobot
Loading...
Searching...
No Matches
ConsoleLogger.h File Reference
#include <iostream>
#include <string>
#include "subzero/logging/ILogger.h"
+ Include dependency graph for ConsoleLogger.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  subzero::ConsoleLogger
 Outputs formatted strings to stdout. More...
 

Namespaces

namespace  subzero
 

Macros

#define ConsoleWriter   subzero::ConsoleLogger::getInstance()
 
#define ConsoleInfo(key, fmt, ...)
 Shortcut to log at the Logging::Level::Info level from a command composition.
 
#define ConsoleVerbose(key, fmt, ...)
 Shortcut to log at the Logging::Level::Verbose level from a command composition.
 

Macro Definition Documentation

◆ ConsoleInfo

#define ConsoleInfo ( key,
fmt,
... )
Value:
frc2::InstantCommand([] { \
ConsoleWriter.logInfo(key, fmt, __VA_ARGS__); \
}).ToPtr()
#define ConsoleWriter

Shortcut to log at the Logging::Level::Info level from a command composition.

Definition at line 79 of file ConsoleLogger.h.

◆ ConsoleVerbose

#define ConsoleVerbose ( key,
fmt,
... )
Value:
frc2::InstantCommand([] { \
ConsoleWriter.logVerbose(key, fmt, __VA_ARGS__); \
}).ToPtr()

Shortcut to log at the Logging::Level::Verbose level from a command composition.

Definition at line 88 of file ConsoleLogger.h.

◆ ConsoleWriter

#define ConsoleWriter   subzero::ConsoleLogger::getInstance()

Definition at line 73 of file ConsoleLogger.h.