ECCE @ 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/master/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
 

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.

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(), dofistatescat(), doinstatescat(), dokinematics(), genevent(), getdeltat(), getinspliti(), getinsudared(), getmass(), getpdfxint(), getscatterer(), getspliti(), gettemp(), getxsecint(), hijing(), insudaint(), intpgghigh(), intpgglow(), intpqghigh(), intpqglow(), intpqq(), lucell(), ludecy(), luptdi(), luradk(), lushow(), lustrf(), lutabu(), lux3jt(), lux4jt(), luxjet(), luxtot(), luzdis(), makeinsplit(), makesplitting(), pdfint(), plu(), poissonian(), pyalem(), pyalps(), pyboei(), pycell(), pyct5l(), pyct5m(), pycteq(), 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(), pystfu(), pystrf(), pysubh(), pytabu(), pytbbc(), pytbbn(), pythia(), pyw1au(), pyw2au(), pywaux(), pywidt(), pyx3jt(), pyx4jt(), pyxjet(), pyxtee(), pyxtot(), pyxxga(), pyxxz6(), pyzdis(), scatprimfunc(), splitfncint(), ulalps(), and xsecint().

+ 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 529 of file Logger.hpp.

View newest version in sPHENIX GitHub at line 529 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 526 of file Logger.hpp.

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

Referenced by log().


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