Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gabime/spdlog.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabime <gmelman1@gmail.com>2014-12-21 03:34:52 +0300
committergabime <gmelman1@gmail.com>2014-12-21 03:34:52 +0300
commite0b99edc995099d9896c6d2d5ffb51fccf504281 (patch)
tree1d32ff0fb2409505b5467853ae90e966c837c1d0 /example
parent174c77bc74aacd9fb53ecc1cc4bb6355a110c3a4 (diff)
updated example
Diffstat (limited to 'example')
-rw-r--r--example/example.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/example.cpp b/example/example.cpp
index 4a9d05dc..c08e4a26 100644
--- a/example/example.cpp
+++ b/example/example.cpp
@@ -57,7 +57,7 @@ int main(int, char* [])
for(int i = 0; i < 10; ++i)
file_logger->info("{} * {} equals {:>10}", i, i, i*i);
- //Customize msg format for all messages
+ //Customize msg format for all messages
spd::set_pattern("*** [%H:%M:%S %z] [thread %t] %v ***");
file_logger->info("This is another message with custom format");
@@ -76,7 +76,7 @@ int main(int, char* [])
async_file->info() << "This is async log.." << "Should be very fast!";
#ifdef __linux__
- // syslog example
+ // syslog example. linux only..
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!");