Skip to content
Commits on Source (4)
......@@ -4,7 +4,7 @@
#
cmake_minimum_required(VERSION 3.1)
project(spdlog VERSION 1.3.0 LANGUAGES CXX)
project(spdlog VERSION 1.3.1 LANGUAGES CXX)
include(CMakeDependentOption)
include(GNUInstallDirs)
......
......@@ -91,7 +91,7 @@ int main()
spdlog::info("Positional args are {1} {0}..", "too", "supported");
spdlog::info("{:<30}", "left aligned");
spdlog::set_level(spdlog::level::debug/ Set global log level to debug
spdlog::set_level(spdlog::level::debug); // Set global log level to debug
spdlog::debug("This message should be displayed..");
// change log pattern
......
......@@ -30,20 +30,19 @@ if(NOT TARGET spdlog)
endif()
find_package(Threads REQUIRED)
find_package(benchmark CONFIG REQUIRED)
add_executable(bench bench.cpp)
target_link_libraries(bench spdlog::spdlog Threads::Threads)
target_link_libraries(bench PRIVATE spdlog::spdlog Threads::Threads)
add_executable(async_bench async_bench.cpp)
target_link_libraries(async_bench spdlog::spdlog Threads::Threads)
target_link_libraries(async_bench PRIVATE spdlog::spdlog Threads::Threads)
add_executable(latency latency.cpp)
set(CMAKE_CXX_STANDARD_LIBRARIES -lbenchmark)
target_link_libraries(latency spdlog::spdlog Threads::Threads)
target_link_libraries(latency PRIVATE benchmark::benchmark spdlog::spdlog Threads::Threads)
add_executable(formatter-bench formatter-bench.cpp)
set(CMAKE_CXX_STANDARD_LIBRARIES -lbenchmark)
target_link_libraries(formatter-bench spdlog::spdlog Threads::Threads)
target_link_libraries(formatter-bench PRIVATE benchmark::benchmark spdlog::spdlog Threads::Threads)
file(MAKE_DIRECTORY "${CMAKE_CURRENT_BINARY_DIR}/logs")
spdlog (1:1.3.1-1) unstable; urgency=medium
* New upstream version
-- Michael R. Crusoe <michael.crusoe@gmail.com> Mon, 21 Jan 2019 08:15:35 -0800
spdlog (1:1.3.0-2) unstable; urgency=medium
* No point in building benchmarks, causes issues on some unofficial
......
......@@ -25,9 +25,9 @@ struct log_msg
#ifndef SPDLOG_NO_THREAD_ID
, thread_id(os::thread_id())
#endif
, source(loc)
, payload(view)
#endif
{
}
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/fmt_helper.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/console_globals.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/file_helper.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/file_helper.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "base_sink.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#if defined(_WIN32)
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/null_mutex.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/null_mutex.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/file_helper.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#ifdef _WIN32
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/details/console_globals.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/sinks/base_sink.h"
......
......@@ -6,7 +6,7 @@
#pragma once
#ifndef SPDLOG_H
#error "spdlog.h must be included before this file."
#include "spdlog/spdlog.h"
#endif
#include "spdlog/common.h"
......
......@@ -7,6 +7,6 @@
#define SPDLOG_VER_MAJOR 1
#define SPDLOG_VER_MINOR 3
#define SPDLOG_VER_PATCH 0
#define SPDLOG_VER_PATCH 1
#define SPDLOG_VERSION (SPDLOG_VER_MAJOR * 10000 + SPDLOG_VER_MINOR * 100 + SPDLOG_VER_PATCH)