JeVois  1.0
JeVois Smart Embedded Machine Vision Toolkit
manager3.C
Go to the documentation of this file.
1 
2 // ######################################################################
3 void jevois::Manager::onParamChange(jevois::manager::loglevel const & JEVOIS_UNUSED_PARAM(param),
4  jevois::manager::LogLevel const & newval)
5 {
6  switch(newval)
7  {
8  case jevois::manager::LogLevel::fatal: jevois::logLevel = LOG_CRIT; break;
9  case jevois::manager::LogLevel::error: jevois::logLevel = LOG_ERR; break;
10  case jevois::manager::LogLevel::info: jevois::logLevel = LOG_INFO; break;
11 #ifdef JEVOIS_LDEBUG_ENABLE
12  case jevois::manager::LogLevel::debug: jevois::logLevel = LOG_DEBUG; break;
13 #endif
14  }
15 }
16 
17 // ######################################################################
18 void jevois::Manager::onParamChange(jevois::manager::tracelevel const & JEVOIS_UNUSED_PARAM(param),
19  unsigned int const & newval)
20 {
21  if (newval)
22  {
23 #if !defined(JEVOIS_TRACE_ENABLE) || !defined(JEVOIS_LDEBUG_ENABLE)
24  LERROR("Debug trace has been disabled at compile-time, re-compile with -DJEVOIS_LDEBUG_ENABLE=ON and "
25  "-DJEVOIS_TRACE_ENABLE=ON to see trace info");
26 #endif
27  }
28 
29  jevois::traceLevel = newval;
30 }
31 
void onParamChange(manager::loglevel const &param, manager::LogLevel const &newval)
Parameter callback.
#define LERROR(msg)
Convenience macro for users to print out console or syslog messages, ERROR level. ...
Definition: Log.H:186
int logLevel
Current log level.
Definition: Log.C:26
int traceLevel
Current trace level.
Definition: Log.C:27