26 #define CARL_LOGGING_ENABLED
27 #define CARL_LOG_FATAL(channel, msg) __CARL_LOG_FATAL(channel, msg)
28 #define CARL_LOG_ERROR(channel, msg) __CARL_LOG_ERROR(channel, msg)
29 #define CARL_LOG_WARN(channel, msg) __CARL_LOG_WARN(channel, msg)
30 #define CARL_LOG_INFO(channel, msg) __CARL_LOG_INFO(channel, msg)
31 #define CARL_LOG_DEBUG(channel, msg) __CARL_LOG_DEBUG(channel, msg)
32 #define CARL_LOG_TRACE(channel, msg) __CARL_LOG_TRACE(channel, msg)
34 #define CARL_LOG_FUNC(channel, args) __CARL_LOG_FUNC(channel, args)
35 #define CARL_LOG_ASSERT(channel, condition, msg) __CARL_LOG_ASSERT(channel, condition, msg)
36 #define CARL_LOG_NOTIMPLEMENTED() __CARL_LOG_ERROR("", "Not implemented method-stub called.")
37 #define CARL_LOG_INEFFICIENT() __CARL_LOG_WARN("", "Inefficient method called.")
39 #define CARL_LOG_FATAL(channel, msg) std::cerr << (channel) << ": " << msg << std::endl;
40 #define CARL_LOG_ERROR(channel, msg) std::cerr << (channel) << ": " << msg << std::endl;
41 #define CARL_LOG_WARN(channel, msg)
42 #define CARL_LOG_INFO(channel, msg)
43 #define CARL_LOG_DEBUG(channel, msg)
44 #define CARL_LOG_TRACE(channel, msg)
46 #define CARL_LOG_FUNC(channel, args)
47 #define CARL_LOG_ASSERT(channel, condition, msg) assert(condition)
48 #define CARL_LOG_NOTIMPLEMENTED()
49 #define CARL_LOG_INEFFICIENT()
52 #ifdef LOGGING_DISABLE_INEFFICIENT
53 #undef CARL_LOG_INEFFICIENT
54 #define CARL_LOG_INEFFICIENT()
55 #undef CARL_LOG_NOTIMPLEMENTED
56 #define CARL_LOG_NOTIMPLEMENTED()
62 #ifdef CARL_LOGGING_ENABLED
64 std::cerr <<
"CArL: You are running in release mode with logging enabled. Are you sure, that this is what you want?" << std::endl;
carl is the main namespace for the library.
void setInitialLogLevel()