The Gaudi Framework  v36r5 (befafb8a)
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 329 of file PluginServiceV2.cpp.

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

◆ SetDebug()

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

Definition at line 318 of file PluginServiceV2.cpp.

318  {
319  using namespace Details;
320  Logger& l = logger();
321  if ( debugLevel > 1 )
322  l.setLevel( Logger::Debug );
323  else if ( debugLevel > 0 )
324  l.setLevel( Logger::Info );
325  else
326  l.setLevel( Logger::Warning );
327  }
gaudirun.level
level
Definition: gaudirun.py:364
Gaudi::PluginService::v2::Details::logger
Logger & logger()
Definition: PluginServiceV2.cpp:297
Gaudi::PluginService::v2::Debug
int Debug()
Definition: PluginServiceV2.cpp:329
gaudirun.l
dictionary l
Definition: gaudirun.py:580