mirror of https://github.com/oxen-io/lokinet
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
26 lines
560 B
C++
26 lines
560 B
C++
3 years ago
|
#include "apple_logger.hpp"
|
||
|
|
||
3 years ago
|
namespace llarp::apple
|
||
3 years ago
|
{
|
||
|
void
|
||
|
NSLogStream::PreLog(
|
||
|
std::stringstream& ss,
|
||
|
LogLevel lvl,
|
||
|
const char* fname,
|
||
|
int lineno,
|
||
|
const std::string& nodename) const
|
||
|
{
|
||
|
ss << "[" << LogLevelToString(lvl) << "] ";
|
||
|
ss << "[" << nodename << "]"
|
||
|
<< "(" << thread_id_string() << ") " << log_timestamp() << " " << fname << ":" << lineno
|
||
|
<< "\t";
|
||
|
}
|
||
|
|
||
|
void
|
||
|
NSLogStream::Print(LogLevel, const char*, const std::string& msg)
|
||
|
{
|
||
3 years ago
|
ns_logger(msg.c_str());
|
||
3 years ago
|
}
|
||
|
|
||
3 years ago
|
} // namespace llarp::apple
|