IMP  2.1.1
The Integrative Modeling Platform
base/log.h File Reference

Logging and error reporting support. More...

#include <IMP/base/base_config.h>
#include "enums.h"
#include "WarningContext.h"
#include "internal/static.h"
#include <iostream>
#include <cstdlib>
#include <string>
#include <sstream>
+ Include dependency graph for base/log.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 IMP
 All IMP::kernel code is brought into the IMP namespace.
 
 IMP::base
 See IMP.base for more information.
 

Logging

IMP provides tools for controlling the amount of log output produced and directing it to the terminal or a file. Only log messages tagged with a lower level than the current LogLevel are emitted. In addition to a global log level (get_log_level(), set_log_level()), each IMP::Object has an internal log level (IMP::Object::get_log_level(), IMP::Object::set_log_level()) which is used when executing code on that object.

Logging is provided by IMP/base/log.h.

People implementing IMP::Object classes should also see IMP_OBJECT_LOG() and IMP::SetLogState.

All logging is disabled when IMP is built using build='fast'.

void IMP::base::add_to_log (LogLevel level, std::string to_write)
 Write a string to the log, for python.
 
void IMP::base::set_log_level (LogLevel l)
 Set the current global log level. More...
 
void IMP::base::set_log_timer (bool tb)
 Set whether log messages are tagged with the current log time.
 
void IMP::base::reset_log_timer ()
 Reset the log timer.
 
LogLevel IMP::base::get_log_level ()
 Get the currently active global log level. More...
 

Create a progress bar in the terminal

void IMP::base::set_progress_display (std::string description, unsigned int steps)
 
void IMP::base::add_to_progress_display (unsigned int step=1)
 

Detailed Description

Copyright 2007-2013 IMP Inventors. All rights reserved.

Definition in file base/log.h.