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
@ -101,7 +101,10 @@ int main()
|
|||||||
// define SPDLOG_ACTIVE_LEVEL to desired level
|
// define SPDLOG_ACTIVE_LEVEL to desired level
|
||||||
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
|
||||||
|
Loading…
Reference in New Issue
Block a user