dune-pdelab  2.0.0
Namespaces | Functions
logtag.cc File Reference
#include <cstddef>
#include <iomanip>
#include <ios>
#include <ostream>
#include <sys/types.h>
#include <unistd.h>
#include <mpi.h>
#include <dune/common/ios_state.hh>
#include <dune/common/shared_ptr.hh>
#include <dune/pdelab/common/clock.hh>
#include <dune/pdelab/common/hostname.hh>
#include "logtag.hh"

Namespaces

 Dune
 
 Dune::PDELab
 

Functions

shared_ptr< LogtagFormatterBase > Dune::PDELab::makeGeneralLogtagFormatter (std::ostream &(&formatFunc)(std::ostream &))
 Convenience function to create a GeneralLogtagFormatter. More...
 
const shared_ptr
< LogtagFormatterBase > & 
Dune::PDELab::getLogtagFormatter ()
 get the log tag formatter currently used by logtag() More...
 
void Dune::PDELab::setLogtagFormatter (const shared_ptr< LogtagFormatterBase > &formatter=shared_ptr< LogtagFormatterBase >())
 set a new log tag formatter to be used by logtag() More...
 
std::ostream & Dune::PDELab::logtag (std::ostream &s)
 function that writes a log tag to some stream More...
 
void Dune::PDELab::logtagSetupMPI (bool syncWidthes=true)
 collect MPI information for the logtag formatters 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::hostPidWallUserLogtagFormatFunc (std::ostream &s)
 logtag format function that includes host name, pid, wall time and CPU time More...
 
std::ostream & Dune::PDELab::nullFormatFunc (std::ostream &s)
 logtag format function that does not write anything More...