The Gaudi Framework  v32r2 (46d42edc)
Gaudi::PluginService::v1 Namespace Reference

Namespaces

 Details
 

Classes

class  Exception
 
class  Factory
 Class wrapping the signature for a factory with any number of arguments. More...
 

Functions

GAUDIPS_API void SetDebug (int debugLevel)
 Backward compatibility with Reflex. More...
 
GAUDIPS_API int Debug ()
 Backward compatibility with Reflex. More...
 

Function Documentation

◆ Debug()

int Gaudi::PluginService::v1::Debug ( )

Backward compatibility with Reflex.

Definition at line 337 of file PluginServiceV1.cpp.

337  {
338  using namespace Details;
339  switch ( logger().level() ) {
340  case Logger::Debug:
341  return 2;
342  case Logger::Info:
343  return 1;
344  default:
345  return 0;
346  }
347  }
GAUDIPS_API Logger & logger()
Return the current logger instance.
GAUDIPS_API int Debug()
Backward compatibility with Reflex.

◆ SetDebug()

void Gaudi::PluginService::v1::SetDebug ( int  debugLevel)

Backward compatibility with Reflex.

Definition at line 326 of file PluginServiceV1.cpp.

326  {
327  using namespace Details;
328  Logger& l = logger();
329  if ( debugLevel > 1 )
330  l.setLevel( Logger::Debug );
331  else if ( debugLevel > 0 )
332  l.setLevel( Logger::Info );
333  else
334  l.setLevel( Logger::Warning );
335  }
GAUDIPS_API Logger & logger()
Return the current logger instance.
dictionary l
Definition: gaudirun.py:523
GAUDIPS_API int Debug()
Backward compatibility with Reflex.