EIC Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Acts::Logger Class Reference

class for printing debug output More...

#include <acts/blob/sPHENIX/Core/include/Acts/Utilities/Logger.hpp>

+ Collaboration diagram for Acts::Logger:

Public Member Functions

 Logger (std::unique_ptr< Logging::OutputPrintPolicy > pPrint, std::unique_ptr< Logging::OutputFilterPolicy > pFilter)
 construct from output print and filter policy
 
bool doPrint (const Logging::Level &lvl) const
 decide whether a message with a given debug level has to be printed
 
Logging::OutStream log (const Logging::Level &lvl) const
 create output stream object with internal cache
 
template<typename Callable >
void log (const Logging::Level &lvl, Callable &&callable) const
 

Private Attributes

std::unique_ptr
< Logging::OutputPrintPolicy
m_printPolicy
 policy object for printing debug messages
 
std::unique_ptr
< Logging::OutputFilterPolicy
m_filterPolicy
 policy object for filtering debug messages
 

Detailed Description

class for printing debug output

This class provides the user interface for printing debug messages with different levels of severity.

Definition at line 489 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 489 of file Logger.hpp

Constructor & Destructor Documentation

Acts::Logger::Logger ( std::unique_ptr< Logging::OutputPrintPolicy pPrint,
std::unique_ptr< Logging::OutputFilterPolicy pFilter 
)
inline

construct from output print and filter policy

Parameters
[in]pPrintpolicy for printing debug messages
[in]pFilterpolicy for filtering debug messages

Definition at line 495 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 495 of file Logger.hpp

Member Function Documentation

bool Acts::Logger::doPrint ( const Logging::Level lvl) const
inline

decide whether a message with a given debug level has to be printed

Parameters
[in]lvldebug level of debug message
Returns
true if debug message should be printed, otherwise false

Definition at line 504 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 504 of file Logger.hpp

References m_filterPolicy.

Referenced by Acts::LoggerWrapper::doPrint(), and log().

+ Here is the caller graph for this function:

Logging::OutStream Acts::Logger::log ( const Logging::Level lvl) const
inline

create output stream object with internal cache

Parameters
[in]lvldebug level of debug message

This function creates and returns a stream object which behaves like a std::ostream and internally caches the debug message. The message will only be written to the destination stream once this stream object goes out of scope.

Returns
output stream object with internal cache for debug message

Definition at line 518 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 518 of file Logger.hpp

References Acts::Logging::OutputPrintPolicy::flush(), and m_printPolicy.

Referenced by __example_2.f__(), aiz(), alphas(), avscatcen(), biz(), deltas(), dofistatescat(), doinstatescat(), dokinematics(), gamma(), genevent(), getdeltat(), getinspliti(), getinsudared(), getmass(), getpdfxint(), getscatterer(), getspliti(), gettemp(), getxsecint(), hijing(), insudaint(), intpgghigh(), intpgglow(), intpqghigh(), intpqglow(), intpqq(), log(), Acts::LoggerWrapper::log(), lqcdpr(), lscale(), lucell(), ludecy(), luptdi(), luradk(), lushow(), lustrf(), lutabu(), lux3jt(), lux4jt(), luxjet(), luxtot(), luzdis(), lweits(), lystfu(), makeinsplit(), makesplitting(), mpolrad(), parton(), partonx(), partonx5(), partonx6(), pdfint(), plu(), poissonian(), pyalem(), pyalps(), pyboei(), pycell(), pyct5l(), pyct5m(), pycteq(), pyctq2(), pydecy(), pydisg(), pydocu(), pyevnt(), pyevnw(), pyfcmp(), pyfisb(), pyfscr(), pygaga(), pygano(), pygbeh(), pygdir(), pygfxx(), pyggam(), pygrvd(), pygrvl(), pygrvm(), pygrvs(), pygrvw(), pygvmd(), pyhii3au(), pyhiklim(), pyhikmap(), pyhimaxi(), pyhimult(), pyhirand(), pyhiremn(), pyhisigh(), pyhispen(), pyhisspa(), pyhistfu(), pyhithia(), pyhiw1au(), pyhiw2au(), pyhiwidt(), pyhixtot(), pyi3au(), pyinom(), pyinpr(), pyklim(), pykmap(), pymaxi(), pymign(), pymihk(), pymirm(), pymrun(), pymult(), pyofsh(), pyp(), pypcmp(), pypdel(), pypdfl(), pypdfu(), pypdga(), pypdpi(), pypdpo(), pyptdi(), pyptfs(), pyptis(), pyptmi(), pyradk(), pyrand(), pyreco(), pyremn(), pyresd(), pyrghm(), pysghg(), pysgqc(), pysgwz(), pyshow(), pysigh(), pyspen(), pysspa(), pystel(), pystga(), pystpi(), pystpr(), pystrf(), pysubh(), pytabu(), pytbbc(), pytbbn(), pywaux(), pywidt(), pyx3jt(), pyx4jt(), pyxjet(), pyxtee(), pyxtot(), pyxxga(), pyxxz6(), pyzdis(), r1990(), r1998(), readtbl(), readtbl5(), readtbl6(), rv2(), scatprimfunc(), splitfncint(), ulalem(), ulalps(), vacpol(), and xsecint().

+ Here is the call graph for this function:

template<typename Callable >
void Acts::Logger::log ( const Logging::Level lvl,
Callable &&  callable 
) const
inline

Definition at line 525 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 525 of file Logger.hpp

References doPrint(), and log().

+ Here is the call graph for this function:

Member Data Documentation

std::unique_ptr<Logging::OutputFilterPolicy> Acts::Logger::m_filterPolicy
private

policy object for filtering debug messages

Definition at line 536 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 536 of file Logger.hpp

Referenced by doPrint().

std::unique_ptr<Logging::OutputPrintPolicy> Acts::Logger::m_printPolicy
private

policy object for printing debug messages

Definition at line 533 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 533 of file Logger.hpp

Referenced by log().


The documentation for this class was generated from the following file: