9 #ifndef STK_UTIL_ENVIRONMENT_OUTPUTLOG_HPP 10 #define STK_UTIL_ENVIRONMENT_OUTPUTLOG_HPP 19 template<
class Ch,
class Tr>
131 void create_log_file(
const std::string &name,
const std::string &path);
166 const std::string &
get_log_path(
const std::string &name);
213 std::ostream &
dout();
214 std::ostream &
pout();
215 std::ostream &
tout();
217 std::ostream &
dwout();
222 #endif // STK_UTIL_ENVIRONMENT_OUTPUTLOG_HPP std::ostream & dout()
Diagnostic output stream.
std::ostream & dwout()
Diagnostic writer stream.
const std::string & get_log_path(const std::string &name)
Function get_log_path returns the file path of the log file with the specified name from the log file...
std::ostream & pout()
Per-processor output stream (See RuntimeDeferredx)
std::ostream & out()
Normal output stream.
stk_classic::basic_tee_streambuf< char, std::char_traits< char > > tee_streambuf
Tee stream buffer for char.
void create_log_file(const std::string &name, const std::string &path)
Function create_log_file opens a log file at the specified path and adds it to the registry of log fi...
Class basic_tee_streambuf maintains a list of destination output stream buffers to send written chara...
void close_log_file(const std::string &name)
Function close_log_file close the log file with the specified name and removes it from the registry o...
std::ostream * get_ostream_ostream(const std::string &name)
Function get_ostream_streambuf locates the output stream registered with the specified name...
std::ostream * get_ostream_tee_ostream(const std::string &name)
Function get_ostream_tee_streambuf locates the tee streambuf registered with the specified name...
void bind_output_streams(const std::string &output_description)
Function bind_output_streams parses the output_description and opens and registers the log streams an...
bool is_registered_ostream(const std::string &name)
Function is_registered_ostream returns true if an output stream of the specified name is registered...
std::ostream & tout()
Regression test textual output stream.
std::ostream * get_log_ostream(const std::string &name)
Function get_log_file_ostream return the output stream of the log file with the specified name from t...
void unregister_ostream(std::ostream &os)
Function unregister_ostream unregisters an output stream.
void unregister_log_ostream(std::ostream &os)
Function register_log_ostream takes an existing std::ostream and makes it available for output redire...
void register_log_ostream(std::ostream &os, const std::string &name)
Function register_log_ostream takes an existing std::ostream and makes it available for output redire...
void register_ostream(std::ostream &os, const std::string &name)
Function register_ostream registers an output stream with the output stream registry. The registration process creates an intermediate tee streambuf.