This commit is contained in:
gabime
2019-03-30 14:53:02 +03:00
parent e32c856a04
commit c2b0e223fa
8 changed files with 202 additions and 137 deletions

View File

@@ -1,8 +1,10 @@
// Copyright(c) 2015-present Gabi Melman.
// Distributed under the MIT License (http://opensource.org/licenses/MIT)
#include "spdlite.h"
#include "spdlog/spdlog.h"
#include "spdlog/sinks/basic_file_sink.h"
#include "spdlog/sinks/stdout_color_sinks.h"
#include "spdlog/sinks/stdout_sinks.h"
#define UNUSED(x) (void)(x)
@@ -10,5 +12,5 @@
spdlite::logger create_logger(void *ctx)
{
UNUSED(ctx);
return spdlite::default_logger();
return spdlite::logger(spdlog::basic_logger_mt("logger-name", "log.txt", true));
}