mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 16:35:45 +08:00
Update README.md
This commit is contained in:
parent
d8f01c3a72
commit
efc8de6d64
@ -132,13 +132,14 @@ int main(int, char*[])
|
||||
// syslog example. linux/osx only..
|
||||
syslog_example();
|
||||
|
||||
// log user-defined types example..
|
||||
// Log user-defined types example..
|
||||
user_defined_example();
|
||||
|
||||
// Change default log error handler
|
||||
err_handler_example();
|
||||
|
||||
console->info("End of example. bye..");
|
||||
// Apply a function on all registered loggers
|
||||
spd::apply_all([&](std::shared_ptr<spdlog::logger> l) {l->info("End of example."); });
|
||||
|
||||
// Release and close all loggers
|
||||
spdlog::drop_all();
|
||||
@ -157,7 +158,7 @@ void async_example()
|
||||
spdlog::set_async_mode(q_size);
|
||||
auto async_file = spd::daily_logger_st("async_file_logger", "logs/async_log.txt");
|
||||
for (int i = 0; i < 100; ++i)
|
||||
async_file->info("Async message #{}{}", i);
|
||||
async_file->info("Async message #{}", i);
|
||||
}
|
||||
|
||||
//syslog example (linux/osx only)
|
||||
|
Loading…
Reference in New Issue
Block a user