Rivet API documentation
![]() |
Rivet 4.1.3
|
Logging.hh
void log(int level, const std::string &message)
Write a message at a particular level.
bool isActive(int level) const
Will this log level produce output on this logger at the moment?
Definition Logging.hh:114
std::map< int, std::string > ColorCodes
Typedef for a collection of shell color codes, accessed by log level.
Definition Logging.hh:32
std::string formatMessage(int level, const std::string &message)
Turn a message string into the current log format.
Log & setName(const std::string &name)
Set the name of this logger.
Definition Logging.hh:108
static std::string getLevelName(int level)
Get the std::string representation of a log level.
static Level getLevelFromName(const std::string &level)
Get a log level enum from a string.
Log & setLevel(int level)
Set the priority level of this logger.
Definition Logging.hh:91
std::map< std::string, Log > LogMap
Typedef for a collection of named logs.
Definition Logging.hh:26
static Log & getLog(const std::string &name)
std::map< std::string, int > LevelMap
Typedef for a collection of named log levels.
Definition Logging.hh:29
static const int END_COLOR
Special "level-like" code to end coloring.
Definition Logging.hh:22
int getLevel() const
Get the priority level of this logger.
Definition Logging.hh:86
static std::string getColorCode(int level)
Get the TTY code string for coloured messages.
friend std::ostream & operator<<(Log &log, int level)
The streaming operator can use Log's internals.
Definition MC_CENT_PPB_Projections.hh:10
std::ostream & operator<<(std::ostream &os, const AnalysisInfo &ai)
Stream an AnalysisInfo as a text description.
Definition AnalysisInfo.hh:362
Generated on for Rivet by
