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

Class that contains (but doesn't own) a logger instance. Is callable so can be used with the logging macros. More...

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

+ Collaboration diagram for Acts::LoggerWrapper:

Public Member Functions

 LoggerWrapper ()=delete
 
 LoggerWrapper (const Logger &logger)
 Constructor ensuring a logger instance is given.
 
bool doPrint (const Logging::Level &lvl) const
 
Logging::OutStream log (const Logging::Level &lvl) const
 
const Loggeroperator() () const
 

Private Attributes

const Loggerm_logger
 

Detailed Description

Class that contains (but doesn't own) a logger instance. Is callable so can be used with the logging macros.

Definition at line 541 of file Logger.hpp.

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

Constructor & Destructor Documentation

Acts::LoggerWrapper::LoggerWrapper ( )
delete
Acts::LoggerWrapper::LoggerWrapper ( const Logger logger)
explicit

Constructor ensuring a logger instance is given.

Parameters
logger

Definition at line 15 of file Logger.cpp.

View newest version in sPHENIX GitHub at line 15 of file Logger.cpp

Member Function Documentation

bool Acts::LoggerWrapper::doPrint ( const Logging::Level lvl) const

Directly expose whether the contained logger will print at a level.

Parameters
lvlThe level to check
Returns
Whether to print at this level or not.

Definition at line 17 of file Logger.cpp.

View newest version in sPHENIX GitHub at line 17 of file Logger.cpp

References Acts::Logger::doPrint(), and m_logger.

+ Here is the call graph for this function:

Logging::OutStream Acts::LoggerWrapper::log ( const Logging::Level lvl) const

Add a logging message at a given level

Parameters
lvlThe level to print at
Returns
Accumulating output stream.

Definition at line 22 of file Logger.cpp.

View newest version in sPHENIX GitHub at line 22 of file Logger.cpp

References Acts::Logger::log(), and m_logger.

Referenced by Acts::TrackingVolume::compatibleBoundaries().

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

const Logger & Acts::LoggerWrapper::operator() ( ) const

Call operator that returns the contained logger instance. Enables using the logging macros ACTS_* when an instance of this class is assigned to a local variable logger.

Returns
Reference to the logger instance.

Definition at line 27 of file Logger.cpp.

View newest version in sPHENIX GitHub at line 27 of file Logger.cpp

References m_logger.

Member Data Documentation

const Logger* Acts::LoggerWrapper::m_logger
private

Definition at line 568 of file Logger.hpp.

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

Referenced by doPrint(), log(), and operator()().


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