15 #include <deal.II/base/logstream.h>
16 #include <deal.II/base/utilities.h>
18 using namespace dealii;
23 namespace FcstUtilities
31 extern FCSTLogStream
log;
73 void attach (std::ostream &o,
74 const bool print_job_id =
true);
135 void push (
const std::string &text)
183 template <
typename T>
185 operator << (
const T &t)
const;
202 operator<< (std::ostream& (*p) (std::ostream &))
const;
233 FCSTLogStream::operator<< (
const T &t)
const
236 if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
252 FCSTLogStream::operator<< (std::ostream& (*p) (std::ostream &))
const
255 if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
270 #endif //_FCST_LOGGING
unsigned int depth_console(const unsigned int n)
Maximum number of levels to be printed on the console.
Definition: logging.h:158
void pop()
Remove the last prefix added with push().
Definition: logging.h:144
bool has_file() const
Definition: logging.h:123
unsigned int depth_file(const unsigned int n)
Maximum number of levels to be written to the log file.
Definition: logging.h:172
std::ostream & output_stream
Determine an estimate for the memory consumption (in bytes) of this object.
Definition: logging.h:218
std::ostream & get_file_stream()
Setup the logstream for regression test mode.
Definition: logging.h:114
FCSTLogStream log
Object used to output data to file and, if file attached recorded to a file as well.
The object FcstUtilities::log should be used throughout OpenFCST for console logging.
Definition: logging.h:48
void push(const std::string &text)
Push another prefix on the stack.
Definition: logging.h:135
std::ostream * file
Pointer to a stream, where a copy of the output is to go to.
Definition: logging.h:226