The Gaudi Framework  v40r0 (475e45c1)
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 338 of file PluginServiceV2.cpp.

338  {
339  using namespace Details;
340  switch ( logger().level() ) {
341  case Logger::Debug:
342  return 2;
343  case Logger::Info:
344  return 1;
345  default:
346  return 0;
347  }
348  }

◆ SetDebug()

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

Definition at line 327 of file PluginServiceV2.cpp.

327  {
328  using namespace Details;
329  Logger& l = logger();
330  if ( debugLevel > 1 )
331  l.setLevel( Logger::Debug );
332  else if ( debugLevel > 0 )
333  l.setLevel( Logger::Info );
334  else
335  l.setLevel( Logger::Warning );
336  }
gaudirun.level
level
Definition: gaudirun.py:364
Gaudi::PluginService::v2::Details::logger
Logger & logger()
Definition: PluginServiceV2.cpp:306
Gaudi::PluginService::v2::Debug
int Debug()
Definition: PluginServiceV2.cpp:338
gaudirun.l
dictionary l
Definition: gaudirun.py:583