diff --git a/examples/logging_example/main.cpp b/examples/logging_example/main.cpp deleted file mode 100644 index 9708142..0000000 --- a/examples/logging_example/main.cpp +++ /dev/null @@ -1,40 +0,0 @@ -#include "spore/Spore.h" -#include "spore/util/Logging.h" -#include - -Spore spore; - -void setup() { - // Initialize Spore framework - spore.setup(); - - // Start the framework - spore.begin(); - - // Demonstrate different logging levels - LOG_INFO("Example", "Logging example started"); - LOG_DEBUG("Example", "This is a debug message"); - LOG_WARN("Example", "This is a warning message"); - LOG_ERROR("Example", "This is an error message"); - - // Demonstrate logging with different components - LOG_INFO("Network", "WiFi connection established"); - LOG_INFO("Cluster", "Node discovered: esp-123456"); - LOG_INFO("API", "Server started on port 80"); - - LOG_INFO("Example", "All logging now uses the simplified system!"); -} - -void loop() { - // Run the Spore framework - spore.loop(); - - // Log some periodic information - static unsigned long lastLog = 0; - if (millis() - lastLog > 5000) { - LOG_DEBUG("Example", "System running - Free heap: " + String(ESP.getFreeHeap())); - lastLog = millis(); - } - - delay(100); -} diff --git a/examples/neopattern/main.cpp b/examples/neopattern/main.cpp index c4bd2c9..0a839d5 100644 --- a/examples/neopattern/main.cpp +++ b/examples/neopattern/main.cpp @@ -37,7 +37,7 @@ void setup() { // Start the API server and complete initialization spore.begin(); - LOG_INFO(spore.getContext(), "Main", "NeoPattern service registered and ready!"); + LOG_INFO( "Main", "NeoPattern service registered and ready!"); } void loop() { diff --git a/examples/neopixel/main.cpp b/examples/neopixel/main.cpp index 471ae92..fef6ca6 100644 --- a/examples/neopixel/main.cpp +++ b/examples/neopixel/main.cpp @@ -37,7 +37,7 @@ void setup() { // Start the API server and complete initialization spore.begin(); - LOG_INFO(spore.getContext(), "Main", "NeoPixel service registered and ready!"); + LOG_INFO( "Main", "NeoPixel service registered and ready!"); } void loop() { diff --git a/examples/static_web/main.cpp b/examples/static_web/main.cpp index 426331e..e9d16af 100644 --- a/examples/static_web/main.cpp +++ b/examples/static_web/main.cpp @@ -12,8 +12,8 @@ void setup() { // Start the framework (this will start the API server with static file serving) spore.begin(); - LOG_INFO(spore.getContext(), "Example", "Static web server started!"); - LOG_INFO(spore.getContext(), "Example", "Visit http:/// to see the web interface"); + LOG_INFO( "Example", "Static web server started!"); + LOG_INFO( "Example", "Visit http:/// to see the web interface"); } void loop() {