|
ACTS
Experiment-independent tracking
|
class for printing debug output More...
#include <Acts/Utilities/Logger.hpp>
Public Member Functions | |
| Logger (std::unique_ptr< Logging::OutputPrintPolicy > pPrint, std::unique_ptr< Logging::OutputFilterPolicy > pFilter) | |
| construct from output print and filter policy | |
| std::unique_ptr< Logger > | clone (const std::optional< std::string > &_name=std::nullopt, const std::optional< Logging::Level > &_level=std::nullopt) const |
| Make a copy of this logger, optionally changing the name or the level. | |
| std::unique_ptr< Logger > | clone (Logging::Level _level) const |
| Make a copy of the logger, with a new level. | |
| std::unique_ptr< Logger > | cloneWithSuffix (const std::string &suffix, std::optional< Logging::Level > _level=std::nullopt) const |
| Make a copy of the logger, with a suffix added to the end of it's name. | |
| bool | doPrint (const Logging::Level &lvl) const |
| decide whether a message with a given debug level has to be printed | |
| const Logging::OutputFilterPolicy & | filterPolicy () const |
| Return the filter policy for this logger. | |
| Logging::Level | level () const |
| Return the level of the filter policy of this logger. | |
| void | log (const Logging::Level &lvl, const std::string &input) const |
| log a debug message | |
| const std::string & | name () const |
| Return the name of the print policy of this logger. | |
| const Logger & | operator() () const |
| Helper function so a logger reference can be used as is with the logging macros. | |
| const Logging::OutputPrintPolicy & | printPolicy () const |
| Return the print policy for this logger. | |
class for printing debug output
This class provides the user interface for printing debug messages with different levels of severity.
| Acts::Logger::Logger | ( | std::unique_ptr< Logging::OutputPrintPolicy > | pPrint, |
| std::unique_ptr< Logging::OutputFilterPolicy > | pFilter ) |
construct from output print and filter policy
| [in] | pPrint | policy for printing debug messages |
| [in] | pFilter | policy for filtering debug messages |
| std::unique_ptr< Logger > Acts::Logger::clone | ( | const std::optional< std::string > & | _name = std::nullopt, |
| const std::optional< Logging::Level > & | _level = std::nullopt ) const |
Make a copy of this logger, optionally changing the name or the level.
| _name | the optional new name |
| _level | the optional new level |
| std::unique_ptr< Logger > Acts::Logger::clone | ( | Logging::Level | _level | ) | const |
Make a copy of the logger, with a new level.
Convenience function for if you only want to change the level but not the name.
| _level | the new level |
| std::unique_ptr< Logger > Acts::Logger::cloneWithSuffix | ( | const std::string & | suffix, |
| std::optional< Logging::Level > | _level = std::nullopt ) const |
Make a copy of the logger, with a suffix added to the end of it's name.
You can also optionally supply a new level
| suffix | the suffix to add to the end of the name |
| _level | the optional new level |
| bool Acts::Logger::doPrint | ( | const Logging::Level & | lvl | ) | const |
decide whether a message with a given debug level has to be printed
| [in] | lvl | debug level of debug message |
true if debug message should be printed, otherwise false | const Logging::OutputFilterPolicy & Acts::Logger::filterPolicy | ( | ) | const |
Return the filter policy for this logger.
| Logging::Level Acts::Logger::level | ( | ) | const |
Return the level of the filter policy of this logger.
| void Acts::Logger::log | ( | const Logging::Level & | lvl, |
| const std::string & | input ) const |
log a debug message
| [in] | lvl | debug level of debug message |
| [in] | input | text of debug message |
| const std::string & Acts::Logger::name | ( | ) | const |
Return the name of the print policy of this logger.
| const Logger & Acts::Logger::operator() | ( | ) | const |
Helper function so a logger reference can be used as is with the logging macros.
| const Logging::OutputPrintPolicy & Acts::Logger::printPolicy | ( | ) | const |
Return the print policy for this logger.