16 #ifndef dealii_logstream_h 17 #define dealii_logstream_h 19 #include <deal.II/base/config.h> 21 #include <deal.II/base/exceptions.h> 22 #include <deal.II/base/smartpointer.h> 23 #include <deal.II/base/subscriptor.h> 24 #include <deal.II/base/thread_local_storage.h> 34 DEAL_II_NAMESPACE_OPEN
110 Prefix(
const std::string &text);
157 const bool print_job_id =
true,
158 const std::ios_base::fmtflags
flags = std::ios::showpoint |
212 push(
const std::string &text);
269 width(
const std::streamsize wide);
278 flags(
const std::ios::fmtflags f);
296 operator<<(std::ostream &(*p)(std::ostream &));
315 std::stack<std::string> &
381 template <
typename T>
398 template <
typename T>
403 log.get_stream() << t;
418 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
void attach(std::ostream &o, const bool print_job_id=true, const std::ios_base::fmtflags flags=std::ios::showpoint|std::ios::left)
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)
SmartPointer< LogStream, LogStream::Prefix > stream
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)
LogStream & operator<<(std::ostream &(*p)(std::ostream &))
std::ostringstream & get_stream()
std::size_t memory_consumption() const