Joedb 10.3.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
Apple_Logger.cpp
Go to the documentation of this file.
2
3#include <string>
4
5namespace joedb
6{
7 Apple_Logger::Apple_Logger(std::string tag):
8 tag(std::move(tag)),
9 the_log(os_log_create("org.joedb", this->tag.c_str()))
10 {
11 }
12
13 void Apple_Logger::log(const std::string &message) noexcept
14 {
15 os_log_with_type(the_log, OS_LOG_TYPE_INFO, "%{public}s", message.c_str());
16 }
17
19 {
20 os_release(the_log);
21 }
22}
void log(const std::string &message) noexcept override
Apple_Logger(std::string tag)