12 #include <IMP/base/base_config.h>
17 #if IMP_BASE_HAS_LOG4CXX
18 #include <log4cxx/logger.h>
21 IMPBASE_BEGIN_NAMESPACE
23 #if !defined(SWIG) && !defined(IMP_DOXYGEN)
25 extern IMPBASEEXPORT Flag<LogLevel, IMP_HAS_LOG != IMP_SILENT> log_level;
48 #if !IMP_BASE_HAS_LOG4CXX
52 IMPBASEEXPORT
void push_log_context(
const char *functionname,
56 IMPBASEEXPORT
void pop_log_context();
59 IMPBASEEXPORT
void add_to_log(std::string to_write);
96 #if IMP_BASE_HAS_LOG4CXX
97 inline log4cxx::LoggerPtr get_logger() {
98 static log4cxx::LoggerPtr ret = log4cxx::Logger::getLogger(
"IMP");
102 #if !defined(IMP_DOXYGEN) && !defined(SWIG)
125 IMPBASE_END_NAMESPACE
void set_log_timer(bool tb)
Set whether log messages are tagged with the current log time.
LogLevel
The log levels supported by IMP.
void reset_log_timer()
Reset the log timer.
void set_log_level(LogLevel l)
Set the current global log level.
void set_progress_display(std::string description, unsigned int steps)
Set up the progress bar with the passed description.
LogLevel get_log_level()
Get the currently active global log level.
void add_to_log(LogLevel level, std::string to_write)
Write a string to the log, for Python.
Various general useful macros for IMP.
void add_to_progress_display(unsigned int step=1)
Set the current progress.
Logging and error reporting support.