You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
spdlog/lite-example/create_logger.cpp

15 lines
370 B
C++

7 years ago
#include "spdlite.h"
7 years ago
#include "spdlog/spdlog.h"
7 years ago
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
7 years ago
#include "spdlog/sinks/stdout_sinks.h"
7 years ago
7 years ago
#define UNUSED(x) (void)(x)
// example of creating lite logger with console and file sink
7 years ago
spdlite::logger create_logger(void *ctx)
7 years ago
{
7 years ago
UNUSED(ctx);
7 years ago
return spdlite::default_logger();
7 years ago
}