Added logger.h
This commit is contained in:
22
src/main.cpp
Normal file
22
src/main.cpp
Normal file
@@ -0,0 +1,22 @@
|
||||
#include <iostream>
|
||||
|
||||
#include <Logger.h>
|
||||
|
||||
|
||||
class Uart {
|
||||
public:
|
||||
void write(char c) {
|
||||
std::cout << c;
|
||||
}
|
||||
private:
|
||||
};
|
||||
|
||||
|
||||
int main() {
|
||||
Uart uart;
|
||||
|
||||
Logger logger(uart);
|
||||
logger.log<"Test format string: {} {}">(1, 2, 3);
|
||||
|
||||
return 0;
|
||||
}
|
||||
Reference in New Issue
Block a user