Lugdunum
0.1.0
include
lug
System
Logger
LogCatHandler.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <android/log.h>
4
#include <
lug/System/Logger/Handler.hpp
>
5
6
namespace
lug
{
7
namespace
System {
8
namespace
Logger {
9
10
class
LUG_SYSTEM_API
LogCatHandler
:
public
Handler
{
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
Handler.hpp
lug::System::Logger::Handler
Definition:
Handler.hpp:15
LUG_SYSTEM_API
#define LUG_SYSTEM_API
Definition:
Export.hpp:11
lug::System::Logger::LogCatHandler
Definition:
LogCatHandler.hpp:10
lug::System::Logger::Level
Level
Definition:
Common.hpp:35
lug
Definition:
Application.hpp:11
Generated by
1.8.13