Lugdunum  0.1.0
LogCatHandler.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <android/log.h>
5 
6 namespace lug {
7 namespace System {
8 namespace Logger {
9 
11 public:
12  LogCatHandler(const std::string& name);
13 
14  LogCatHandler(const LogCatHandler&) = delete;
15  LogCatHandler(LogCatHandler&&) = delete;
16 
17  LogCatHandler& operator=(const LogCatHandler&) = delete;
18  LogCatHandler& operator=(LogCatHandler&&) = delete;
19 
20  ~LogCatHandler() = default;
21 
22 private:
23  void handle(const priv::Message& msg);
24  void flush();
25 
26  android_LogPriority lugLevelToLogCatPrio(Level level);
27 };
28 
29 } // Logger
30 } // System
31 } // lug
#define LUG_SYSTEM_API
Definition: Export.hpp:11