mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-29 01:29:35 +08:00
Update README.md
This commit is contained in:
@@ -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
|
||||||
//
|
//
|
||||||
|
Reference in New Issue
Block a user