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
a047b58e65
commit
db01c6b64d
@ -90,12 +90,11 @@ int main(int, char* [])
|
|||||||
console->debug("Now it should..");
|
console->debug("Now it should..");
|
||||||
|
|
||||||
//
|
//
|
||||||
// Create a basic file logger (multithreaded, use "file_logger_st" for single threaded logger)
|
// Create a basic multithreaded file logger (use "file_logger_st" for the single threaded version)
|
||||||
//
|
//
|
||||||
auto simple_logger = spd::file_logger_mt("basic_logger", "logs/simple.txt");
|
auto simple_logger = spd::file_logger_mt("basic_logger", "logs/simple.txt");
|
||||||
simple_logger->info("Some log message");
|
simple_logger->info("Some log message");
|
||||||
|
|
||||||
|
|
||||||
//
|
//
|
||||||
// Create a file rotating logger with 5mb size max and 3 rotated files
|
// Create a file rotating logger with 5mb size max and 3 rotated files
|
||||||
//
|
//
|
||||||
|
Loading…
Reference in New Issue
Block a user