| 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 | /// |
nothing calls this directly
no outgoing calls
no test coverage detected