Commit df9fc0e2 authored by gabime's avatar gabime

updated example

parent 14273418
...@@ -135,9 +135,7 @@ int main(int, char* []) ...@@ -135,9 +135,7 @@ int main(int, char* [])
spdlog::set_async_mode(q_size); spdlog::set_async_mode(q_size);
auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt"); auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt");
async_file->info() << "This is async log.." << "Should be very fast!"; async_file->info() << "This is async log.." << "Should be very fast!";
#ifdef __linux__ #ifdef __linux__
// syslog example // syslog example
std::string ident = "spdlog-example"; std::string ident = "spdlog-example";
......
...@@ -74,9 +74,7 @@ int main(int, char* []) ...@@ -74,9 +74,7 @@ int main(int, char* [])
spdlog::set_async_mode(q_size); spdlog::set_async_mode(q_size);
auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt"); auto async_file= spd::daily_logger_st("async_file_logger", "logs/async_log.txt");
async_file->info() << "This is async log.." << "Should be very fast!"; async_file->info() << "This is async log.." << "Should be very fast!";
#ifdef __linux__ #ifdef __linux__
// syslog example // syslog example
std::string ident = "spdlog-example"; std::string ident = "spdlog-example";
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment