Joedb
10.2.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
error
Apple_System_Logger.cpp
Go to the documentation of this file.
1
#include "
joedb/error/Apple_System_Logger.h
"
2
3
#include <string>
4
5
namespace
joedb
6
{
7
Apple_System_Logger::Apple_System_Logger
(std::string_view tag):
8
log(os_log_create(
"org.joedb"
, std::string(tag).c_str()))
9
{
10
}
11
12
void
Apple_System_Logger::write
(std::string_view message)
noexcept
13
{
14
try
15
{
16
os_log_with_type
17
(
18
log,
19
OS_LOG_TYPE_INFO,
20
"%{public}s"
,
21
std::string(message).c_str()
22
);
23
}
24
catch
(...)
25
{
26
}
27
}
28
}
Apple_System_Logger.h
joedb::Apple_System_Logger::Apple_System_Logger
Apple_System_Logger(std::string_view tag)
Definition
Apple_System_Logger.cpp:7
joedb::Apple_System_Logger::write
void write(std::string_view message) noexcept override
Definition
Apple_System_Logger.cpp:12
joedb
Definition
Server.cpp:11
Generated by
1.9.8