The Gaudi Framework  master (37c0b60a)
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 376 of file PluginServiceV2.cpp.

376  {
377  using namespace Details;
378  switch ( logger().level() ) {
379  case Logger::Debug:
380  return 2;
381  case Logger::Info:
382  return 1;
383  default:
384  return 0;
385  }
386  }

◆ SetDebug()

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

Definition at line 365 of file PluginServiceV2.cpp.

365  {
366  using namespace Details;
367  Logger& l = logger();
368  if ( debugLevel > 1 )
369  l.setLevel( Logger::Debug );
370  else if ( debugLevel > 0 )
371  l.setLevel( Logger::Info );
372  else
373  l.setLevel( Logger::Warning );
374  }
gaudirun.level
level
Definition: gaudirun.py:364
Gaudi::PluginService::v2::Details::logger
Logger & logger()
Definition: PluginServiceV2.cpp:344
Gaudi::PluginService::v2::Debug
int Debug()
Definition: PluginServiceV2.cpp:376
gaudirun.l
dictionary l
Definition: gaudirun.py:583