mirror of
https://github.com/gabime/spdlog.git
synced 2024-11-15 08:25:43 +08:00
Update example.cpp
This commit is contained in:
parent
ff80d10820
commit
10b640d773
@ -115,7 +115,7 @@ void stdout_logger_example()
|
|||||||
void basic_example()
|
void basic_example()
|
||||||
{
|
{
|
||||||
// Create basic file logger (not rotated).
|
// Create basic file logger (not rotated).
|
||||||
auto my_logger = spdlog::basic_logger_mt("file_logger", "logs/basic-log.txt");
|
auto my_logger = spdlog::basic_logger_mt("file_logger", "logs/basic-log.txt", true);
|
||||||
}
|
}
|
||||||
|
|
||||||
#include "spdlog/sinks/rotating_file_sink.h"
|
#include "spdlog/sinks/rotating_file_sink.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user