Added "basic_logger_mt/basic_logger_st" to the API

This commit is contained in:
gabime
2016-06-22 00:23:55 +03:00
parent cef7eb0667
commit a047b58e65
5 changed files with 32 additions and 2 deletions

View File

@@ -88,6 +88,13 @@ int main(int, char* [])
console->debug("This message shold not be displayed!");
console->set_level(spd::level::debug); // Set specific logger's log level
console->debug("Now it should..");
//
// Create a basic file logger (multithreaded, use "file_logger_st" for single threaded logger)
//
auto simple_logger = spd::file_logger_mt("basic_logger", "logs/simple.txt");
simple_logger->info("Some log message");
//
// Create a file rotating logger with 5mb size max and 3 rotated files