OSSIA
Open Scenario System for Interactive Application
Loading...
Searching...
No Matches
ossia-pd/src/logger.hpp
1#pragma once
2#include <ossia/network/common/websocket_log_sink.hpp>
3
4#include <ossia-pd/src/object_base.hpp>
5
6namespace ossia::pd
7{
8
9class logger : public object_base
10{
11public:
12 t_symbol* m_host;
13 t_symbol* m_appname;
14 t_symbol* m_exec;
15 int m_ival{};
16
17 logger(int argc, t_atom* argv);
18
19 void reset();
20
21 static void in_anything(ossia::pd::logger* x, t_symbol* s, int argc, t_atom* argv);
22 static void destroy(ossia::pd::logger* x);
23 static t_pd_err
24 notify(logger* x, t_symbol* s, t_symbol* msg, void* sender, void* data);
25
26 static void* create(t_symbol* s, int argc, t_atom* argv);
27
28 std::shared_ptr<ossia::websocket_threaded_connection> m_con;
29 std::shared_ptr<spdlog::logger> m_log;
30 std::shared_ptr<ossia::websocket_heartbeat> m_beat;
31};
32} // ossia namespace
spdlog::logger & logger() noexcept
Where the errors will be logged. Default is stderr.
Definition context.cpp:118