hideakitai/DebugLog

LOG_ERROR' was not declared in this scope

Jahislove opened this issue · 1 comments

hello ,i just tried your librarie but there is an error in your example
tested with ESP8266 wemos D1 mini

G:\Documents\Arduino\libraries\Debug\example\example.ino: In function 'void setup()':
example:11:32: error: 'LOG_ERROR' was not declared in this scope
   LOG_ERROR("this is error log");
                                ^
example:12:36: error: 'LOG_WARNING' was not declared in this scope
   LOG_WARNING("this is warning log");
                                    ^
example:13:36: error: 'LOG_VERBOSE' was not declared in this scope
   LOG_VERBOSE("this is verbose log");
                                    ^
example:15:17: error: 'Debug' has not been declared
   LOG_SET_LEVEL(Debug::LogLevel::WARNING);
                 ^
example:15:41: error: 'LOG_SET_LEVEL' was not declared in this scope
   LOG_SET_LEVEL(Debug::LogLevel::WARNING);
                                         ^
example:22:17: error: 'Debug' has not been declared
   LOG_SET_LEVEL(Debug::LogLevel::ERROR);
                 ^
example:29:17: error: 'Debug' has not been declared
   LOG_SET_LEVEL(Debug::LogLevel::NONE);
                 ^
example:39:16: error: 'ASSERT' was not declared in this scope
   ASSERT(x != 1); // if assertion failed, Serial endlessly prints message
                ^
exit status 1
'LOG_ERROR' was not declared in this scope

I'm sorry for late reply.
I fixed issue for ESP8266 in latest commit.
Please check the example_esp8266.
Thank you for your information!