Joedb 10.2.3
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Apple_System_Logger.cpp
Go to the documentation of this file.
2
3#include <string>
4
5namespace joedb
6{
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(std::string_view tag)
void write(std::string_view message) noexcept override