diff --git a/components/logger/CMakeLists.txt b/components/logger/CMakeLists.txt new file mode 100644 index 0000000..90e2e28 --- /dev/null +++ b/components/logger/CMakeLists.txt @@ -0,0 +1,3 @@ +idf_component_register(SRCS "logger.cpp" + PRIV_REQUIRES + INCLUDE_DIRS "include") diff --git a/components/logger/include/logger.h b/components/logger/include/logger.h new file mode 100644 index 0000000..c2d9c95 --- /dev/null +++ b/components/logger/include/logger.h @@ -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 diff --git a/components/logger/logger.cpp b/components/logger/logger.cpp new file mode 100644 index 0000000..32d6587 --- /dev/null +++ b/components/logger/logger.cpp @@ -0,0 +1,3 @@ +// +// Created by Johnathon Slightham on 2025-05-26. +//