namespace base @brief Base of Easylogging++ friendly class @detail After inheriting this class publicly, implement pure-virtual function `void log(std::ostream&) const`
| 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 { |