14 LogComponent::LogComponent(
const char* name,
20 m_tracePrintEnabled(minimumPrintLevel <=
yarp::os::
Log::TraceType),
21 m_debugPrintEnabled(minimumPrintLevel <=
yarp::os::
Log::DebugType),
22 m_infoPrintEnabled(minimumPrintLevel <=
yarp::os::
Log::InfoType),
23 m_warningPrintEnabled(minimumPrintLevel <=
yarp::os::
Log::WarningType),
24 m_errorPrintEnabled(minimumPrintLevel <=
yarp::os::
Log::ErrorType),
25 m_fatalPrintEnabled(minimumPrintLevel <=
yarp::os::
Log::FatalType),
26 m_traceForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::TraceType),
27 m_debugForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::DebugType),
28 m_infoForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::InfoType),
29 m_warningForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::WarningType),
30 m_errorForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::ErrorType),
31 m_fatalForwardEnabled(minimumForwardLevel <=
yarp::os::
Log::FatalType),
32 m_printCallback(printCallback),
33 m_forwardCallback(forwardCallback)
42 return (m_tracePrintEnabled.load() ? m_printCallback :
nullptr);
44 return (m_debugPrintEnabled.load() ? m_printCallback :
nullptr);
46 return (m_infoPrintEnabled.load() ? m_printCallback :
nullptr);
48 return (m_warningPrintEnabled.load() ? m_printCallback :
nullptr);
50 return (m_errorPrintEnabled.load() ? m_printCallback :
nullptr);
52 return (m_fatalPrintEnabled.load() ? m_printCallback :
nullptr);
62 return (m_traceForwardEnabled.load() ? m_forwardCallback :
nullptr);
64 return (m_debugForwardEnabled.load() ? m_forwardCallback :
nullptr);
66 return (m_infoForwardEnabled.load() ? m_forwardCallback :
nullptr);
68 return (m_warningForwardEnabled.load() ? m_forwardCallback :
nullptr);
70 return (m_errorForwardEnabled.load() ? m_forwardCallback :
nullptr);
72 return (m_fatalForwardEnabled.load() ? m_forwardCallback :
nullptr);
78 #ifndef YARP_NO_DEPRECATED // Since YARP 3.4
79 void LogComponent::setMinimumPrintLevel(LogType minimumPrintLevel)
89 void LogComponent::setMinimumForwardLevel(LogType minimumForwardLevel)
98 #endif // YARP_NO_DEPRECATED