refactor for apple

This commit is contained in:
Jeff Becker 2021-09-24 12:42:29 -04:00
parent 7d07dea235
commit 2d5faccb9f
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05
2 changed files with 5 additions and 5 deletions

View File

@ -6,7 +6,7 @@ namespace llarp::apple
NSLogStream::PreLog(
std::stringstream& ss,
LogLevel lvl,
const char* fname,
std::string_view fname,
int lineno,
const std::string& nodename) const
{
@ -17,7 +17,7 @@ namespace llarp::apple
}
void
NSLogStream::Print(LogLevel, const char*, const std::string& msg)
NSLogStream::Print(LogLevel, std::string_view, const std::string& msg)
{
ns_logger(msg.c_str());
}

View File

@ -16,15 +16,15 @@ namespace llarp::apple
PreLog(
std::stringstream& s,
LogLevel lvl,
const char* fname,
std::string_view fname,
int lineno,
const std::string& nodename) const override;
void
Print(LogLevel lvl, const char* tag, const std::string& msg) override;
Print(LogLevel lvl, std::string_view tag, const std::string& msg) override;
void
PostLog(std::stringstream& ss) const override
PostLog(std::stringstream&) const override
{}
void