44 void info(std::string msg, ...);
50 void info(
const Variable& variable,
bool verbose=
false);
53 void info_stream(std::ostream& out, std::string msg);
59 void warning(std::string msg, ...);
64 void error(std::string msg, ...);
87 std::string reason, ...);
99 std::string version_deprecated,
100 std::string message, ...);
103 void log(
int debug_level, std::string msg, ...);
106 void begin(std::string msg, ...);
109 void begin(
int debug_level, std::string msg, ...);
138 void __debug(std::string file,
140 std::string function,
141 std::string format, ...);
144 void __dolfin_assert(std::string file,
146 std::string function,
156#define dolfin_debug(msg) do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg); } while (false)
157#define dolfin_debug1(msg, a0) do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg, a0); } while (false)
158#define dolfin_debug2(msg, a0, a1) do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg, a0, a1); } while (false)
159#define dolfin_debug3(msg, a0, a1, a2) do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg, a0, a1, a2); } while (false)
160#define dolfin_debug4(msg, a0, a1, a2, a3) do { dolfin::__debug(__FILE__, __LINE__, __FUNCTION__, msg, a0, a1, a2, a3); } while (false)
163#define dolfin_not_implemented() \
165 dolfin::dolfin_error("log.h", \
166 "perform call to DOLFIN function", \
167 "The function %s has not been implemented (in %s line %d)", \
168 __FUNCTION__, __FILE__, __LINE__); \
173#define dolfin_assert(check) \
177 dolfin::__dolfin_assert(__FILE__, __LINE__, __FUNCTION__, #check); \
181#define dolfin_assert(check)
void not_working_in_parallel(std::string what)
Definition: log.cpp:205
void info_stream(std::ostream &out, std::string msg)
Print message to stream.
Definition: log.cpp:97
void info_underline(std::string msg,...)
Print underlined message.
Definition: log.cpp:107
void warning(std::string msg,...)
Print warning.
Definition: log.cpp:115
void set_log_level(int level)
Set log level.
Definition: log.cpp:180
void begin(std::string msg,...)
Begin task (increase indentation level)
Definition: log.cpp:153
void set_log_active(bool active=true)
Turn logging on or off.
Definition: log.cpp:175
void dolfin_error(std::string location, std::string task, std::string reason,...)
Definition: log.cpp:129
void error(std::string msg,...)
Definition: log.cpp:123
int get_log_level()
Get log level.
Definition: log.cpp:195
void set_indentation_level(std::size_t indentation_level)
Set indentation level.
Definition: log.cpp:185
void end()
End task (decrease indentation level)
Definition: log.cpp:168
void set_output_stream(std::ostream &out)
Set output stream.
Definition: log.cpp:190
void monitor_memory_usage()
Definition: log.cpp:200
GlobalParameters parameters
The global parameter database.
Definition: GlobalParameters.cpp:32
void deprecation(std::string feature, std::string version_deprecated, std::string message,...)
Definition: log.cpp:137
void log(int debug_level, std::string msg,...)
Print message at given debug level.
Definition: log.cpp:145
void info(std::string msg,...)
Print message.
Definition: log.cpp:72