dune-pdelab
2.5-dev
|
Insert standard boilerplate into log messages. More...
#include <dune/pdelab/common/logtag.hh>
Public Member Functions | |
const std::string & | str () const |
extract the static boilerplate message More... | |
template<class V > | |
LocalTag & | operator<< (const V &v) |
append something to the static boilerplate message More... | |
Insert standard boilerplate into log messages.
This class can be used to create your own logtag locally, e.g. inside a function. When inserted into a std::ostream, it will insert the standard logtag and some static boilerplate string. The boilerplate string can be constructed by inserting into the localtag itself. Sample usage:
|
inline |
append something to the static boilerplate message
|
inline |
extract the static boilerplate message