Alamo
OutputLog.H
Go to the documentation of this file.
1#ifndef IO_OUTPUTLOG_H
2#define IO_OUTPUTLOG_H
3
4#include <string>
5
6namespace IO::OutputLog
7{
8
9/// Route stdout and stderr through the terminal/file tee.
10void Initialize();
11
12/// Open the rank-zero log after the output directory has been created.
13void Open(const std::string& path);
14
15/// Stop retaining output on ranks that do not own the log file.
16void DisableFile();
17
18/// Flush the log and restore the original terminal stream buffers.
19void Finalize();
20
21}
22
23#endif
void Initialize()
Route stdout and stderr through the terminal/file tee.
void Finalize()
Flush the log and restore the original terminal stream buffers.
void DisableFile()
Stop retaining output on ranks that do not own the log file.
void Open(const std::string &path)
Open the rank-zero log after the output directory has been created.