coral
A C++ library for distributed co-simulation
|
Main header file for coral::log (but also contains a few macros). More...
#include <string>
#include <boost/format.hpp>
#include <coral/config.h>
Go to the source code of this file.
Namespaces | |
coral::log | |
Program logging facilities. | |
Macros | |
#define | CORAL_LOG_TRACE(...) ((void)0) |
If the macro CORAL_LOG_TRACE_ENABLED is defined, this is equivalent to calling Log(trace, args) , except that the file and line number are also logged. Otherwise, it is a no-op. | |
#define | CORAL_LOG_DEBUG(...) ((void)0) |
If either of the macros CORAL_LOG_DEBUG_ENABLED or CORAL_LOG_TRACE_ENABLED are defined, this is equivalent to calling Log(debug, args) , except that the file and line number are also logged. Otherwise, it is a no-op. | |
Enumerations |
Functions | |
void | coral::log::Log (Level level, const char *message) CORAL_NOEXCEPT |
Writes a plain C string to the global logger. | |
void | coral::log::Log (Level level, const std::string &message) CORAL_NOEXCEPT |
Writes a plain C++ string to the global logger. | |
void | coral::log::Log (Level level, const boost::format &message) CORAL_NOEXCEPT |
Writes a formatted message to the global logger. | |
void | coral::log::SetLevel (Level level) CORAL_NOEXCEPT |
Sets the global log level, i.e., which log messages get written. | |
Main header file for coral::log (but also contains a few macros).