51 std::ofstream&
write();
59 std::ofstream&
info();
98 void writeArg(
int argc,
char* argv[]);
Log support during compilation.
Definition: log.h:28
~Log()
Destroy the Log object.
Definition: log.cpp:42
std::ofstream & write()
Write contents to the log file.
Definition: log.h:105
std::ofstream _f
output file stream
Definition: log.h:101
void flush()
Flush the buff into the log file.
Definition: log.h:127
bool _open
whether the file successfully opened
Definition: log.h:102
void writeArg(int argc, char *argv[])
Write CLI arguments information to log.
Definition: log.cpp:46
std::ofstream & msg()
Write a message to the log file.
Definition: log.h:122
std::ofstream & war()
Write warning message to the log file.
Definition: log.h:112
std::ofstream & err()
Write error message to the log file.
Definition: log.h:117
std::ofstream & info()
Write infomation to the log file.
Definition: log.h:107
Log()
Construct a new Log object.
Definition: log.cpp:27
Terminal Color and Style Control.