|
|
|
@ -10,9 +10,9 @@
|
|
|
|
|
#define SPDLOG_TRACE_ON
|
|
|
|
|
#define SPDLOG_DEBUG_ON
|
|
|
|
|
|
|
|
|
|
#include "spdlog/sinks/simple_file_sink.h"
|
|
|
|
|
#include "spdlog/sinks/daily_file_sink.h"
|
|
|
|
|
#include "spdlog/sinks/rotating_file_sink.h"
|
|
|
|
|
#include "spdlog/sinks/simple_file_sink.h"
|
|
|
|
|
#include "spdlog/sinks/stdout_color_sinks.h"
|
|
|
|
|
|
|
|
|
|
#include <iostream>
|
|
|
|
@ -66,8 +66,8 @@ int main(int, char *[])
|
|
|
|
|
console->info("This an info message with custom format");
|
|
|
|
|
console->error("This an error message with custom format");
|
|
|
|
|
|
|
|
|
|
// Change format back to to default
|
|
|
|
|
spd::set_pattern ("%+");
|
|
|
|
|
// Change format back to to default
|
|
|
|
|
spd::set_pattern("%+");
|
|
|
|
|
|
|
|
|
|
// Runtime log levels
|
|
|
|
|
spd::set_level(spd::level::info); // Set global log level to info
|
|
|
|
|