15#ifndef dealii_logstream_h
16#define dealii_logstream_h
107 Prefix(
const std::string &text);
155 const bool print_job_id =
true,
156 const std::ios_base::fmtflags
flags = std::ios::showpoint |
210 push(
const std::string &text);
268 width(
const std::streamsize wide);
277 flags(
const std::ios::fmtflags f);
295 operator<<(std::ostream &(*p)(std::ostream &));
314 std::stack<std::string> &
387 template <
typename T>
409 log.get_stream() << t;
ObserverPointer< LogStream, LogStream::Prefix > stream
std::thread::id parent_thread
std::streamsize width(const std::streamsize wide)
std::ostream & get_console()
friend LogStream & operator<<(LogStream &log, const T &t)
std::size_t memory_consumption() const
void push(const std::string &text)
Threads::ThreadLocalStorage< std::shared_ptr< std::ostringstream > > outstreams
std::ios::fmtflags flags(const std::ios::fmtflags f)
void attach(std::ostream &o, const bool print_job_id=true, const std::ios_base::fmtflags flags=std::ios::showpoint|std::ios::left)
std::streamsize precision(const std::streamsize prec)
std::ostream & get_file_stream()
unsigned int depth_console(const unsigned int n)
std::ostringstream & get_stream()
unsigned int depth_file(const unsigned int n)
bool log_thread_id(const bool flag)
Threads::ThreadLocalStorage< std::stack< std::string > > prefixes
std::stack< std::string > & get_prefixes() const
const std::string & get_prefix() const
A class that provides a separate storage location on each thread that accesses the object.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_NAMESPACE_CLOSE
LogStream & operator<<(LogStream &log, const T &t)