Update README.md

This commit is contained in:
Gabi Melman 2019-01-27 19:10:34 +02:00 committed by GitHub
parent 2463fe92bd
commit 00a7f5d75d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -102,6 +102,9 @@ int main()
SPDLOG_TRACE("Some trace message with param {}", {}); SPDLOG_TRACE("Some trace message with param {}", {});
SPDLOG_DEBUG("Some debug message"); SPDLOG_DEBUG("Some debug message");
// Set the default logger to file logger
auto file_logger = spdlog::basic_logger_mt("basic_logger", "logs/basic.txt");
spdlog::set_default_logger(file_logger);
} }
``` ```
#### create stdout/stderr logger object #### create stdout/stderr logger object