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

Class LogBuilder

include/thundersvm/util/log.h:2245–2256  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2243 friend class base::RegisteredLoggers;
2244 };
2245 class LogBuilder : base::NoCopy {
2246 public:
2247 LogBuilder() : m_termSupportsColor(base::utils::OS::termSupportsColor()) {}
2248 virtual ~LogBuilder(void) {
2249 ELPP_INTERNAL_INFO(3, "Destroying log builder...")
2250 }
2251 virtual base::type::string_t build(const LogMessage* logMessage, bool appendNewLine) const = 0;
2252 void convertToColoredOutput(base::type::string_t* logLine, Level level);
2253 private:
2254 bool m_termSupportsColor;
2255 friend class el::base::DefaultLogDispatchCallback;
2256 };
2257 typedef std::shared_ptr<LogBuilder> LogBuilderPtr;
2258/// @brief Represents a logger holding ID and configurations we need to write logs
2259///

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected