dune-pdelab 2.7-git
Loading...
Searching...
No Matches
Namespaces | Functions
logtag.cc File Reference
#include <cstddef>
#include <iomanip>
#include <ios>
#include <ostream>
#include <memory>
#include <sys/types.h>
#include <unistd.h>
#include <mpi.h>
#include <dune/common/ios_state.hh>
#include <dune/pdelab/common/clock.hh>
#include <dune/pdelab/common/hostname.hh>
#include "logtag.hh"

Namespaces

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

Functions

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