dune-pdelab  2.7-git
Classes | Namespaces | Functions
logtag.hh File Reference
#include <memory>
#include <ostream>
#include <sstream>
#include <string>

Go to the source code of this file.

Classes

struct  Dune::PDELab::LogtagFormatterBase
 virtual base class for logger formatters More...
 
class  Dune::PDELab::GeneralLogtagFormatter< FormatFunc >
 A log tag formatter that wraps a unary formatting function or functor. More...
 
class  Dune::PDELab::WithLogtag
 temporarily use a different log tag format function More...
 
class  Dune::PDELab::LocalTag
 Insert standard boilerplate into log messages. More...
 

Namespaces

 Dune
 For backward compatibility – Do not use this!
 
 Dune::PDELab
 

Functions

std::ostream & Dune::PDELab::logtag (std::ostream &s)
 function that writes a log tag to some stream More...
 
std::ostream & Dune::PDELab::hostPidWallUserLogtagFormatFunc (std::ostream &s)
 logtag format function that includes host name, pid, wall time and CPU time More...
 
std::ostream & Dune::PDELab::hostRankWallUserLogtagFormatFunc (std::ostream &s)
 logtag format function that includes hostname, rank (if available), wall time and CPU time More...
 
std::ostream & Dune::PDELab::nullFormatFunc (std::ostream &s)
 logtag format function that does not write anything More...
 
void Dune::PDELab::logtagSetupMPI (bool syncWidthes=true)
 collect MPI information for the logtag formatters More...
 
template<class FormatFunc >
std::shared_ptr< LogtagFormatterBase > Dune::PDELab::makeGeneralLogtagFormatter (const FormatFunc &formatFunc)
 Convenience function to create a GeneralLogtagFormatter. More...
 
std::shared_ptr< LogtagFormatterBase > Dune::PDELab::makeGeneralLogtagFormatter (std::ostream &(&formatFunc)(std::ostream &))
 Convenience function to create a GeneralLogtagFormatter. More...
 
const std::shared_ptr< LogtagFormatterBase > & Dune::PDELab::getLogtagFormatter ()
 get the log tag formatter currently used by logtag() More...
 
void Dune::PDELab::setLogtagFormatter (const std::shared_ptr< LogtagFormatterBase > &formatter=std::shared_ptr< LogtagFormatterBase >())
 set a new log tag formatter to be used by logtag() More...
 
template<class FormatFunc >
void Dune::PDELab::setLogtagFormatFunc (const FormatFunc &formatFunc)
 set a new log tag format function to be used by logtag() More...
 
std::ostream & Dune::PDELab::operator<< (std::ostream &s, const LocalTag &tag)
 insert a localtag into a std::ostream More...