16 #ifndef dealii_logstream_h 17 #define dealii_logstream_h 19 #include <deal.II/base/config.h> 20 #include <deal.II/base/exceptions.h> 21 #include <deal.II/base/smartpointer.h> 22 #include <deal.II/base/thread_local_storage.h> 32 DEAL_II_NAMESPACE_OPEN
108 Prefix(
const std::string &text);
114 Prefix(
const std::string &text,
149 void attach (std::ostream &o,
150 const bool print_job_id =
true);
197 void push (
const std::string &text);
226 unsigned int depth_file (
const unsigned int n);
240 std::streamsize
precision (
const std::streamsize prec);
248 std::streamsize
width (
const std::streamsize wide);
256 std::ios::fmtflags
flags(
const std::ios::fmtflags f);
370 template <
typename T>
375 log.get_stream() << t;
391 DEAL_II_NAMESPACE_CLOSE
std::streamsize precision(const std::streamsize prec)
VectorizedArray< Number > log(const ::VectorizedArray< Number > &x)
A class that provides a separate storage location on each thread that accesses the object...
Threads::ThreadLocalStorage< std::stack< std::string > > prefixes
const std::string & get_prefix() const
unsigned int depth_file(const unsigned int n)
std::streamsize width(const std::streamsize wide)
bool log_thread_id(const bool flag)
std::ostream & get_file_stream()
std::ios::fmtflags flags(const std::ios::fmtflags f)
std::stack< std::string > & get_prefixes() const
unsigned int depth_console(const unsigned int n)
void attach(std::ostream &o, const bool print_job_id=true)
Prefix(const std::string &text)
OutputOperator< VectorType > & operator<<(OutputOperator< VectorType > &out, unsigned int step)
std::ostream & get_console()
Threads::ThreadLocalStorage< std::shared_ptr< std::ostringstream > > outstreams
void push(const std::string &text)
SmartPointer< LogStream, LogStream::Prefix > stream
LogStream & operator<<(std::ostream &(*p)(std::ostream &))
std::ostringstream & get_stream()
std::size_t memory_consumption() const