Commit Graph

264 Commits (f7339dfc92e7ccdb777cec4855cb932992a852e9)

Author SHA1 Message Date
Muhammed Galib Uludag f7339dfc92 readded overwritten SPDLOG_BUF_TO_STRING(x) x definition line 3 years ago
Muhammed Galib Uludag 44873cda87
added compiler and feature check macros from fmt core header
these macros used for adopting fmtlibs's color header
3 years ago
John Armstrong 799802f93b Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING 3 years ago
Gabi Melman 0d8197cc9d
Update common.h
Init file event handlers to nullptr
3 years ago
Kevin Slattery d89a1e66d8 Add default file-event_handler callbacks. #2374 3 years ago
gabime 128cbe5a06 clang-format 3 years ago
Charles Milette cd4f6c1466
Replace fmt_helper::to_string by a macro 3 years ago
Charles Milette ebeb3707b1
Switch to vformat_to
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
3 years ago
espkk e6265c04ae Make file_event_handlers an aggregate 3 years ago
gabime c432fdd987 Bump fmt to version 8.1.1 and run clang-format 4 years ago
Dave Rigby 2a4c34b878 Allow forward-declaration of level_enum
spdlog::level::level_enum cannot be forward-declared at present, as
the definition does not specify an underlying type.

To allow users to make use of <spdlog/fwd.h> to refer to
level::level_enum without pulling in all of <spdlog/common.h> (which
can be quite costly), specify an underlying type (int) for
level::level_enum, then add a forward-declaration for it to
spdlog/fwd.h.

Note this required explicitly casting level_enum to size_t within ansicolor_sink due to sign-conversion errors:

    implicit conversion changes signedness: 'const level::level_enum' to 'std::__1::array::size_type' (aka 'unsigned long') [-Wsign-conversion]

It would appear that an enum with an unspecified underlying type is in
some kind of superposition - it can be treated as both signed _and_
unsigned - using an underlying type of 'unsigned int' triggers even
more warnings of this kind...
4 years ago
Vladislav Nepogodin a087dee98a
🚧 fix building with c++11 4 years ago
Vladislav Nepogodin f096c615c3
🔥 conditional_cast 4 years ago
Gabi Melman b3560d1567
Merge pull request #2190 from sylveon/sylveon-patch-1
Remove extraneous semicolon
4 years ago
Charles Milette d5c000394d
Remove extraneous semicolon 4 years ago
LE GARREC Vincent 58e2b455fb
Fix build with "-fvisibility=hidden" 4 years ago
gabime dc030ec53c clang-format 4 years ago
gabime 2b4e07dd91 Fixed wchar support for std::format 4 years ago
Gabi Melman 24e47efae0
fix gcc 4.8 compile warning 4 years ago
Charles Milette 126a9fb261 Merge branch 'v1.x' of https://github.com/gabime/spdlog into std-format 4 years ago
Charles Milette ad779e4865 Attempt to solve ambiguous symbol on older MSVC 4 years ago
gabime 518bf36aa9 removed redundant intialization 4 years ago
gabime 5b7dfefc7e rename file_event_handlers_t to file_event_handlers 4 years ago
Charles Milette 0ded003703 Fix wchar_t overloads and dump_info formatter 4 years ago
Gabi Melman a3ad8b5f26
Merge pull request #2169 from seker/v1.x_file_event_handlers
file_event_handlers add before_open function
4 years ago
seker 24a551c14e file_event_handlers add before_open function 4 years ago
Charles Milette 8e359baaec
Merge branch 'v1.x' into std-format 4 years ago
Dimitris Apostolou 591eedcf36
Fix typos 4 years ago
Charless Milette 89c4b1aabe Fix build issues under C++11 4 years ago
Charless Milette a31ae23db1 Fix build issue when using built-in fmt 4 years ago
Charless Milette 44a4517e2b Support C++20 std::format as an alternative to fmtlib 4 years ago
seker c47ae3b15d add file event handlers 4 years ago
dkavolis e471ec884e remove conditional `is_convertible_*` structs for wide chars 4 years ago
dkavolis cb35191fc1 clang is acting weird with disabled constructors 4 years ago
Gabi Melman 14783585b6
Fix #2022 4 years ago
dkavolis d8f13cbd5b replace FormatString template argument with fmt::basic_format_string 4 years ago
gabime fe1a4f5fb6 Added SPDLOG_FMT_RUNTIME macro for compatibilty with fmt prior 8 4 years ago
gabime 4b3687f1a6 Removed unneeded macro definition 4 years ago
gabime 0f83b33d4f backward compatibility with fmt version < 8 4 years ago
gabime d75fd2c7f9 Fixed wchar support under msvc 4 years ago
gabime 68aed6a5eb Fixed building under c++17 4 years ago
Mikael Lund cd376a5c43 Allow compilation with nvc++ 4 years ago
steven lunt ee22eed23d add macros for overriding the individual level names 4 years ago
steven lunt ab72de5f7a Revert "added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES"
This reverts commit 2a16d1d230.
4 years ago
gabime e9635c7b2d rethrnow non std exceptions to fix #533 4 years ago
steven lunt 2a16d1d230 added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES 5 years ago
gabime 44e1f9f682 Added nonreturn sepcifier to fix #1748 5 years ago
Gabi Melman 609480ed78
Merge pull request #1798 from gv-me/constexpr-log-levels
add constexpr to SPDLOG_LEVEL_NAMES declaration
5 years ago
Gaurav Vaidya 53d223b45f add constexpr to SPDLOG_LEVEL_NAMES declaration
for #1791
5 years ago
Charles Milette 9e19012cb0
Remove filename_memory_buf_t from headers 5 years ago