MCPcopy Create free account
hub / github.com/Xtra-Computing/thundersvm / Loggable

Class Loggable

include/thundersvm/util/log.h:1618–1627  ·  view source on GitHub ↗

namespace base @brief Base of Easylogging++ friendly class @detail After inheriting this class publicly, implement pure-virtual function `void log(std::ostream&) const`

Source from the content-addressed store, hash-verified

1616///
1617/// @detail After inheriting this class publicly, implement pure-virtual function `void log(std::ostream&) const`
1618 class Loggable {
1619 public:
1620 virtual ~Loggable(void) {}
1621 virtual void log(el::base::type::ostream_t&) const = 0;
1622 private:
1623 friend inline el::base::type::ostream_t& operator<<(el::base::type::ostream_t& os, const Loggable& loggable) {
1624 loggable.log(os);
1625 return os;
1626 }
1627 };
1628 namespace base {
1629/// @brief Represents log format containing flags and date format. This is used internally to start initial log
1630 class LogFormat : public Loggable {

Callers

nothing calls this directly

Calls 1

logMethod · 0.45

Tested by

no test coverage detected