From dbad409b03fc063e432018dc40428c8d0d1a442b Mon Sep 17 00:00:00 2001 From: gabime Date: Sun, 21 Dec 2014 02:32:23 +0200 Subject: [PATCH] updated example --- README.md | 4 ++-- example/example.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 39a22fe9..9c197fb9 100644 --- a/README.md +++ b/README.md @@ -136,12 +136,12 @@ int main(int, char* []) 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!"; -#ifdef __linux__ + #ifdef __linux__ // syslog example std::string ident = "spdlog-example"; 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!"); -#endif + #endif } catch (const spd::spdlog_ex& ex) diff --git a/example/example.cpp b/example/example.cpp index 9b8c19b2..4a9d05dc 100644 --- a/example/example.cpp +++ b/example/example.cpp @@ -75,12 +75,12 @@ int main(int, char* []) 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!"; -#ifdef __linux__ + #ifdef __linux__ // syslog example std::string ident = "spdlog-example"; 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!"); -#endif + #endif } catch (const spd::spdlog_ex& ex)