Joedb
10.3.0
The Journal-Only Embedded Database
Loading...
Searching...
No Matches
src
joedb
error
Posix_Logger.cpp
Go to the documentation of this file.
1
#include "
joedb/error/Posix_Logger.h
"
2
3
#include <string>
4
5
#include <syslog.h>
6
7
namespace
joedb
8
{
9
Posix_Logger::Posix_Logger
(std::string tag): tag(std::move(tag))
10
{
11
}
12
13
void
Posix_Logger::log
(
const
std::string &message)
noexcept
14
{
15
if
(tag.empty())
16
syslog(LOG_INFO,
"%s"
, message.c_str());
17
else
18
syslog(LOG_INFO,
"%s: %s"
, tag.c_str(), message.c_str());
19
}
20
}
Posix_Logger.h
joedb::Posix_Logger::log
void log(const std::string &message) noexcept override
Definition
Posix_Logger.cpp:13
joedb::Posix_Logger::Posix_Logger
Posix_Logger(std::string tag)
Definition
Posix_Logger.cpp:9
joedb
Definition
Server.cpp:10
Generated by
1.9.8