16 #include <base/logstream.h>
17 #include <base/utilities.h>
19 using namespace dealii;
24 namespace FcstUtilities
32 extern FCSTLogStream
log;
74 void attach (std::ostream &o,
75 const bool print_job_id =
true);
136 void push (
const std::string &text)
184 template <
typename T>
186 operator << (
const T &t)
const;
203 operator<< (std::ostream& (*p) (std::ostream &))
const;
234 FCSTLogStream::operator<< (
const T &t)
const
237 if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
253 FCSTLogStream::operator<< (std::ostream& (*p) (std::ostream &))
const
256 if (Utilities::MPI::this_mpi_process(MPI_COMM_WORLD) == 0)
271 #endif //_FCST_LOGGING
unsigned int depth_console(const unsigned int n)
Maximum number of levels to be printed on the console.
Definition: logging.h:159
void pop()
Remove the last prefix added with push().
Definition: logging.h:145
bool has_file() const
Definition: logging.h:124
unsigned int depth_file(const unsigned int n)
Maximum number of levels to be written to the log file.
Definition: logging.h:173
std::ostream & output_stream
Determine an estimate for the memory consumption (in bytes) of this object.
Definition: logging.h:219
std::ostream & get_file_stream()
Setup the logstream for regression test mode.
Definition: logging.h:115
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:49
void push(const std::string &text)
Push another prefix on the stack.
Definition: logging.h:136
std::ostream * file
Pointer to a stream, where a copy of the output is to go to.
Definition: logging.h:227