mirror of
https://github.com/gabime/spdlog.git
synced 2025-02-04 19:56:46 +08:00
Minor style
This commit is contained in:
parent
7bd1c1e1a4
commit
c8b81a6958
@ -95,8 +95,7 @@ bool logger::should_flush_(const details::log_msg &msg) {
|
|||||||
char date_buf[64];
|
char date_buf[64];
|
||||||
std::strftime(date_buf, sizeof(date_buf), "%Y-%m-%d %H:%M:%S", &tm_time);
|
std::strftime(date_buf, sizeof(date_buf), "%Y-%m-%d %H:%M:%S", &tm_time);
|
||||||
#if defined(USING_R) && defined(R_R_H) // if in R environment
|
#if defined(USING_R) && defined(R_R_H) // if in R environment
|
||||||
REprintf("[*** LOG ERROR ***] [%s] [%s] %s\n", date_buf, name().c_str(),
|
REprintf("[*** LOG ERROR ***] [%s] [%s] %s\n", date_buf, name().c_str(), msg.c_str());
|
||||||
msg.c_str());
|
|
||||||
#else
|
#else
|
||||||
std::fprintf(stderr, "[*** LOG ERROR ***] [%s] [%s] %s\n", date_buf,
|
std::fprintf(stderr, "[*** LOG ERROR ***] [%s] [%s] %s\n", date_buf,
|
||||||
name().c_str(), msg.c_str());
|
name().c_str(), msg.c_str());
|
||||||
|
Loading…
Reference in New Issue
Block a user