Skip to content

Instantly share code, notes, and snippets.

@dorgonman
Last active March 26, 2016 14:27
Show Gist options
  • Save dorgonman/aa3bcb24ba275ce9acc6 to your computer and use it in GitHub Desktop.
Save dorgonman/aa3bcb24ba275ce9acc6 to your computer and use it in GitHub Desktop.
HorizonLogBasicFormatedBackend
class HorizonLogBasicFormatedBackend : public boost::log::sinks::basic_formatted_sink_backend < char > {
public:
void consume(const boost::log::record_view& rec, string_type const& msg);
inline void setLogMessageImplemen(HorizonLogImpFunc_t&& impl) { logMessageImplement = std::move(impl); };
private:
void logMessage(const boost::log::record_view& rec, const std::string& msg);
private:
HorizonLogImpFunc_t logMessageImplement;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment