EIC Software
Reference for
EIC
simulation and reconstruction software on GitHub
|
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>
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 Logger & | operator() () const |
Private Attributes | |
const Logger * | m_logger |
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
|
delete |
|
explicit |
Constructor ensuring a logger instance is given.
logger |
Definition at line 15 of file Logger.cpp.
View newest version in sPHENIX GitHub at line 15 of file Logger.cpp
bool Acts::LoggerWrapper::doPrint | ( | const Logging::Level & | lvl | ) | const |
Directly expose whether the contained logger will print at a level.
lvl | The level to check |
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.
Logging::OutStream Acts::LoggerWrapper::log | ( | const Logging::Level & | lvl | ) | const |
Add a logging message at a given level
lvl | The level to print at |
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().
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
.
Definition at line 27 of file Logger.cpp.
View newest version in sPHENIX GitHub at line 27 of file Logger.cpp
References 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()().