Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[Solved] What does the stack log?
14-11-2016, 06:44 PM (This post was last modified: 15-11-2016 05:14 PM by ChriD.)
Post: #1
[Solved] What does the stack log?
Hi, I want to log the logs from the UPNP Stack. Therfore i did this

Code:
...
initParams = OpenHome::Net::InitialisationParams::Create();                                                      
initParams->SetLogOutput(OpenHome::MakeFunctorMsg(*this, &UPNPManager::upnpStackLog));
OpenHome::Net::UpnpLibrary::Initialise(initParams);
...

void UPNPManager::upnpStackLog(const char* _log)
{
    logDebug(_log, CURRENT_POSITION);
}

But upnpStackLog is never called.
Is there any option for setting the log level? What will be logged?

Thanks!
Find all posts by this user
15-11-2016, 08:39 AM
Post: #2
RE: What does the stack log?
(14-11-2016 06:44 PM)ChriD Wrote:  Is there any option for setting the log level? What will be logged?

You can enable logging for various areas by calling Debug::AddLevel(), specifying level(s) defined in the Debug class. What gets logged for each level will hopefully be obvious. Just ask if any are unclear.
Find all posts by this user
15-11-2016, 05:14 PM
Post: #3
RE: What does the stack log?
Perfect!
Thank you!
Find all posts by this user


Forum Jump: