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

Namespaces

 Details
 

Classes

struct  DeclareFactory
 Helper to declare the factory implementation for a user defined type T. More...
 
struct  Factory< R(Args...)>
 Class wrapping the signature for a factory with any number of arguments. More...
 

Functions

void SetDebug (int debugLevel)
 
int Debug ()
 

Function Documentation

◆ Debug()

int Gaudi::PluginService::v2::Debug ( )

Definition at line 331 of file PluginServiceV2.cpp.

331  {
332  using namespace Details;
333  switch ( logger().level() ) {
334  case Logger::Debug:
335  return 2;
336  case Logger::Info:
337  return 1;
338  default:
339  return 0;
340  }
341  }

◆ SetDebug()

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

Definition at line 320 of file PluginServiceV2.cpp.

320  {
321  using namespace Details;
322  Logger& l = logger();
323  if ( debugLevel > 1 )
324  l.setLevel( Logger::Debug );
325  else if ( debugLevel > 0 )
326  l.setLevel( Logger::Info );
327  else
328  l.setLevel( Logger::Warning );
329  }
dictionary l
Definition: gaudirun.py:523