blob: e99edb7dba40abadbd09f5d1f19b1b8510a4b79f [file] [log] [blame]
Tyler Chatow67ddb032020-01-12 14:30:04 -08001#ifndef AOS_LOGGING_H_
2#define AOS_LOGGING_H_
3
4#include "aos/events/event_loop.h"
5#include "aos/logging/implementations.h"
6#include "aos/logging/log_message_generated.h"
7
8namespace aos {
9
10class AosLogToFbs {
11 public:
12 AosLogToFbs() {}
13
Tyler Chatow67ddb032020-01-12 14:30:04 -080014 void Initialize(Sender<logging::LogMessageFbs> log_sender);
Austin Schuha0c41ba2020-09-10 22:59:14 -070015 std::shared_ptr<logging::LogImplementation> implementation() const {
16 return implementation_;
17 }
Tyler Chatow67ddb032020-01-12 14:30:04 -080018
19 private:
20 Sender<logging::LogMessageFbs> log_sender_;
Austin Schuha0c41ba2020-09-10 22:59:14 -070021 std::shared_ptr<logging::LogImplementation> implementation_;
Tyler Chatow67ddb032020-01-12 14:30:04 -080022};
23
24} // namespace aos
25
26#endif // AOS_LOGGING_H_