17 Logger(std::string prefix =
"",
bool isQuiet =
true);
32 void Out(
const T& rObject,
bool withNewline =
false)
37 std::cout << optionalPrefix << rObject;
42 mLogFile << optionalPrefix << rObject;
std::ofstream mLogFile
Logfile for output.
Definition: Logger.h:58
Logger(std::string prefix="", bool isQuiet=true)
...constructor
Definition: Logger.cpp:4
NuTo::Logger & operator<<(NuTo::Logger &rLogger, const char &t)
Definition: Logger.cpp:48
bool mPrintPrefix
Definition: Logger.h:63
static Logger Info
Definition: Logger.h:82
void OpenFile(std::string filename)
..open file
Definition: Logger.cpp:12
set of predefined global loggers
Definition: Logger.h:79
void CloseFile()
..Close file
Definition: Logger.cpp:22
void Info() const
Info routine that prints general information about the object (detail according to verbose level) ...
Definition: Logger.h:51
void Out(const T &rObject, bool withNewline=false)
..Writes a message to the log and to console
Definition: Logger.h:32
void SetQuiet(bool isQuiet)
..sets the output to be forwarded to the console (false) or only to the file (true) ...
Definition: Logger.cpp:27
static Logger Debug
Definition: Logger.h:81
logger class for redirecting output to different locations/files
Definition: Logger.h:12
Definition: Exception.h:6
std::string mPrefix
prefix written on the beginning of the log line
Definition: Logger.h:62
static Logger Error
Definition: Logger.h:83
bool mIsQuiet
If true, no writing to console.
Definition: Logger.h:60
std::string mLogFileName
LogfileName for output.
Definition: Logger.h:59
std::string OptionalPrefix()
Definition: Logger.cpp:32