msgid "Verbose logging for UPnP components"
msgstr ""
-#empty strings from id 679 to 699
+#: xbmc/settings/AdvancedSettings.cpp
+msgctxt "#679"
+msgid "Verbose logging for CEC library"
+msgstr ""
+
+#empty strings from id 680 to 699
msgctxt "#700"
msgid "Cleaning up library"
#define LOGAUDIO (1 << (LOGMASKBIT + 7))
#define LOGAIRTUNES (1 << (LOGMASKBIT + 8))
#define LOGUPNP (1 << (LOGMASKBIT + 9))
+#define LOGCEC (1 << (LOGMASKBIT + 10))
#ifdef __GNUC__
#define ATTRIB_LOG_FORMAT __attribute__((format(printf,3,4)))
#include "peripherals/Peripherals.h"
#include "peripherals/bus/PeripheralBus.h"
#include "pictures/GUIWindowSlideShow.h"
+#include "settings/AdvancedSettings.h"
#include "settings/Settings.h"
#include "utils/log.h"
#include "utils/Variant.h"
break;
}
- if (iLevel >= 0)
+ if (iLevel >= CEC_LOG_NOTICE || (iLevel >= 0 && g_advancedSettings.CanLogComponent(LOGCEC)))
CLog::Log(iLevel, "%s - %s", __FUNCTION__, message.message);
return 1;
#ifdef HAS_UPNP
list.push_back(std::make_pair(g_localizeStrings.Get(678), LOGUPNP));
#endif
+#ifdef HAVE_LIBCEC
+ list.push_back(std::make_pair(g_localizeStrings.Get(679), LOGCEC));
+#endif
}
void CAdvancedSettings::setExtraLogLevel(const std::vector<CVariant> &components)