herald  2.0.0
zephyr_logging_sink.h
1 // Copyright 2020-2021 Herald Project Contributors
2 // SPDX-License-Identifier: Apache-2.0
3 //
4 
5 #ifndef HERALD_ZEPHYR_LOGGING_SINK_H
6 #define HERALD_ZEPHYR_LOGGING_SINK_H
7 
8 #include "../sensor_logger.h"
9 
10 // NOTE: Link Herald to the Zephyr logging system
11 // Set HERALD_LOG_LEVEL=4 for debug in CMake using add_definitions(-DHERALD_LOG_LEVEL=4 )
12 // Defaults to 0 (OFF) - see herald/data/zephyr/zephyr_logging_sink.h
13 // #include <logging/log.h>
14 
15 namespace herald {
16 
17 namespace data {
18 
20 public:
21  ZephyrLoggingSink() = default;
22  ~ZephyrLoggingSink() = default;
23 
24  void log(const std::string& subsystem,const std::string& category,
25  SensorLoggerLevel level, const std::string& message);
26 };
27 
28 } // end namespace
29 } // end namespace
30 
31 #endif
Definition: zephyr_logging_sink.h:19
Acts as a non-global memory arena for arbitrary classes.
Definition: aggregates.h:15