14 #include "boost/format.hpp"    15 #include "coral/config.h"    36 void Log(
Level level, 
const char* message) CORAL_NOEXCEPT;
    42 void Log(
Level level, 
const boost::format& message) CORAL_NOEXCEPT;
    48     void LogLoc(
Level level, 
const char* file, 
int line, 
const char* message) CORAL_NOEXCEPT;
    49     void LogLoc(
Level level, 
const char* file, 
int line, 
const std::string& message) CORAL_NOEXCEPT;
    50     void LogLoc(
Level level, 
const char* file, 
int line, 
const boost::format& message) CORAL_NOEXCEPT;
    60 #ifdef CORAL_LOG_TRACE_ENABLED    61 #   define CORAL_LOG_TRACE(...) coral::log::detail::LogLoc(coral::log::trace, __FILE__, __LINE__, __VA_ARGS__)    63 #   define CORAL_LOG_TRACE(...) ((void)0)    72 #if defined(CORAL_LOG_DEBUG_ENABLED) || defined(CORAL_LOG_TRACE_ENABLED)    73 #   define CORAL_LOG_DEBUG(...) coral::log::detail::LogLoc(coral::log::debug, __FILE__, __LINE__, __VA_ARGS__)    75 #   define CORAL_LOG_DEBUG(...) ((void)0)    82 #endif // header guard 
void SetLevel(Level level) CORAL_NOEXCEPT
Sets the global log level, i.e., which log messages get written. 
 
Definition: variable_io.hpp:28
 
void Log(Level level, const char *message) CORAL_NOEXCEPT
Writes a plain C string to the global logger. 
 
Level
Log levels. 
Definition: log.hpp:26