mirror of
https://github.com/BotChain-Robots/firmware.git
synced 2026-07-08 17:47:21 +02:00
Add logger component (no op atm)
This commit is contained in:
3
components/logger/CMakeLists.txt
Normal file
3
components/logger/CMakeLists.txt
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
idf_component_register(SRCS "logger.cpp"
|
||||||
|
PRIV_REQUIRES
|
||||||
|
INCLUDE_DIRS "include")
|
||||||
20
components/logger/include/logger.h
Normal file
20
components/logger/include/logger.h
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
//
|
||||||
|
// Created by Johnathon Slightham on 2025-05-26.
|
||||||
|
//
|
||||||
|
|
||||||
|
#ifndef LOGGER_H
|
||||||
|
#define LOGGER_H
|
||||||
|
|
||||||
|
class Logger {
|
||||||
|
public:
|
||||||
|
static Logger &getInstance() {
|
||||||
|
static Logger instance;
|
||||||
|
return instance;
|
||||||
|
}
|
||||||
|
|
||||||
|
private:
|
||||||
|
virtual Logger();
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#endif //LOGGER_H
|
||||||
3
components/logger/logger.cpp
Normal file
3
components/logger/logger.cpp
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
//
|
||||||
|
// Created by Johnathon Slightham on 2025-05-26.
|
||||||
|
//
|
||||||
Reference in New Issue
Block a user