22 #ifndef __MLPACK_CORE_UTIL_LOG_HPP
23 #define __MLPACK_CORE_UTIL_LOG_HPP
73 static void Assert(
bool condition,
74 const std::string& message =
"Assert Failed.");
Provides a convenient way to give formatted output.
static void Assert(bool condition, const std::string &message="Assert Failed.")
Checks if the specified condition is true.
static util::PrefixedOutStream Fatal
Prints fatal messages prefixed with [FATAL], then terminates the program.
static util::PrefixedOutStream Info
Prints informational messages if –verbose is specified, prefixed with [INFO ].
static util::NullOutStream Debug
Dumps debug output into the bit nether regions.
static util::PrefixedOutStream Warn
Prints warning messages prefixed with [WARN ].
static std::ostream & cout
Reference to cout, if necessary.
Allows us to output to an ostream with a prefix at the beginning of each line, in the same way we wou...
Used for Log::Debug when not compiled with debugging symbols.