14 #include "../../include/ecl/streams/log_stream.hpp" 41 if (
modes.size() > 0 ) {
50 if(
modes.count(mode) > 0 ) {
62 (*this) <<
"[" <<
modes[mode] <<
"] ";
LogStream & log(int mode)
Log streaming function.
void enableMode(int mode, const std::string header="")
Enable the given mode and associate the specified header.
std::map< int, std::string > modes
void disableMode(int mode)
Disable the given log mode.
A customised textstream for fast, multithreaded logging to file.
void disableTimeStamp()
Disable time stamps.
void enableHeader()
Enable header information.
void enableTimeStamp()
Enable time stamps.
bool isEnabled()
Check to see if any modes are enabled.
void disableHeader()
Disables header information.
bool isModeEnabled(int mode)
Check to see if a particular mode is enabled.