OSSIA
Open Scenario System for Interactive Application
ossia::websocket_log_sink Struct Referencefinal

A sink to use with spdlog, that will send its log messages over websockets. More...

Inherits spdlog::sinks::sink, and Nano::Observer.

Detailed Description

A sink to use with spdlog, that will send its log messages over websockets.

Public Member Functions

 websocket_log_sink (std::shared_ptr< websocket_threaded_connection > s, std::string send)
 
void open_fun ()
 
void make_message (const spdlog::details::log_msg &msg)
 
void send_message (const spdlog::details::log_msg &msg)
 
void log (const spdlog::details::log_msg &msg) override
 
void flush () override
 
void set_pattern (const std::string &pattern) override
 
void set_formatter (std::unique_ptr< spdlog::formatter > sink_formatter) override