This commit is contained in:
gabime 2014-12-21 02:42:37 +02:00
parent 58308df33c
commit d163b8c45a
38 changed files with 2999 additions and 2999 deletions

View File

@ -1,5 +1,5 @@
#!/bin/bash #!/bin/bash
find . -name "*\.h" -o -name "*\.cpp"|xargs dos2unix find . -name "*\.h" -o -name "*\.cpp"|xargs dos2unix
find . -name "*\.h" -o -name "*\.cpp"|xargs astyle -n -A1 find . -name "*\.h" -o -name "*\.cpp"|xargs astyle -n -c -t4 -A1

View File

@ -76,11 +76,11 @@ int main(int, char* [])
async_file->info() << "This is async log.." << "Should be very fast!"; async_file->info() << "This is async log.." << "Should be very fast!";
// syslog example. linux only.. // syslog example. linux only..
#ifdef __linux__ #ifdef __linux__
std::string ident = "spdlog-example"; std::string ident = "spdlog-example";
auto syslog_logger = spd::syslog_logger("syslog", ident, LOG_PID); auto syslog_logger = spd::syslog_logger("syslog", ident, LOG_PID);
syslog_logger->warn("This is warning that will end up in syslog. This is Linux only!"); syslog_logger->warn("This is warning that will end up in syslog. This is Linux only!");
#endif #endif
} }
catch (const spd::spdlog_ex& ex) catch (const spd::spdlog_ex& ex)

View File

@ -39,7 +39,8 @@ namespace spdlog
class formatter; class formatter;
namespace sinks { namespace sinks
{
class sink; class sink;
} }

View File

@ -51,7 +51,6 @@ struct log_msg
raw << fmt::BasicStringRef<char>(other.raw.data(), other.raw.size()); raw << fmt::BasicStringRef<char>(other.raw.data(), other.raw.size());
if (other.formatted.size()) if (other.formatted.size())
formatted << fmt::BasicStringRef<char>(other.formatted.data(), other.formatted.size()); formatted << fmt::BasicStringRef<char>(other.formatted.data(), other.formatted.size());
} }
log_msg(log_msg&& other) : log_msg(log_msg&& other) :