mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-24 09:31:34 +08:00
fix spdlog namespace
This commit is contained in:
parent
a938045135
commit
357a63d914
@ -373,10 +373,10 @@ inline void spdlog::details::async_log_helper::sleep_or_yield(const spdlog::log_
|
||||
|
||||
// sleep for 20 ms upto 200 ms
|
||||
if (time_since_op <= milliseconds(200))
|
||||
return spdlog::details::os::sleep_for_millis(20);
|
||||
return details::os::sleep_for_millis(20);
|
||||
|
||||
// sleep for 500 ms
|
||||
return spdlog::details::os::sleep_for_millis(500);
|
||||
return details::os::sleep_for_millis(500);
|
||||
}
|
||||
|
||||
// wait for the queue to be empty
|
||||
|
@ -55,7 +55,7 @@ public:
|
||||
if (!os::fopen_s(&_fd, fname, mode))
|
||||
return;
|
||||
|
||||
spdlog::details::os::sleep_for_millis(open_interval);
|
||||
details::os::sleep_for_millis(open_interval);
|
||||
}
|
||||
|
||||
throw spdlog_ex("Failed opening file " + os::filename_to_str(_filename) + " for writing", errno);
|
||||
@ -129,7 +129,7 @@ public:
|
||||
if (ext_index == filename_t::npos || ext_index == 0 || ext_index == fname.size() - 1)
|
||||
return std::make_tuple(fname, spdlog::filename_t());
|
||||
|
||||
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
|
||||
// treat casese like "/etc/rc.d/somelogfile or "/abc/.hiddenfile"
|
||||
auto folder_index = fname.rfind(details::os::folder_sep);
|
||||
if (folder_index != fname.npos && folder_index >= ext_index - 1)
|
||||
return std::make_tuple(fname, spdlog::filename_t());
|
||||
|
@ -44,7 +44,7 @@ public:
|
||||
int retry_count = 0;
|
||||
while ((ret == -11/*EAGAIN*/) && (retry_count < SPDLOG_ANDROID_RETRIES))
|
||||
{
|
||||
spdlog::details::os::sleep_for_millis(5);
|
||||
details::os::sleep_for_millis(5);
|
||||
ret = __android_log_write(priority, _tag.c_str(), msg_output);
|
||||
retry_count++;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user