mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-25 01:51:38 +08:00
Update README.md
This commit is contained in:
parent
2463fe92bd
commit
00a7f5d75d
@ -102,6 +102,9 @@ int main()
|
||||
SPDLOG_TRACE("Some trace message with param {}", {});
|
||||
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
|
||||
|
Loading…
Reference in New Issue
Block a user