Loading...
Searching...
No Matches
logging.hpp File Reference
#include <iomanip>
#include <iostream>
#include <utility>
#include "mpi/mpi.hpp"
#include "timestamp.hpp"

Go to the source code of this file.

Classes

class  terra::util::detail::PrefixCout
 std::ostream subclass to enable logging with prefix and only on root. More...
 

Namespaces

namespace  terra
 
namespace  terra::util
 
namespace  terra::util::detail
 

Functions

std::string terra::util::detail::log_prefix ()
 

Variables

detail::PrefixCout terra::util::logroot ([]() { return detail::log_prefix();})
 std::ostream subclass that just logs on root and adds a timestamp for each line.
 
detail::PrefixCout terra::util::logall ([]() { return detail::log_prefix();}, false)
 std::ostream subclass that just logs on any process and adds a timestamp for each line.