gabime
5c93f5ff34
Revert last commit
2023-09-22 18:24:45 +03:00
gabime
9c1e1c85aa
Removed un needed loc_with_fmt constructor
2023-09-22 18:24:45 +03:00
gabime
8488b027e9
Formatting
2023-09-22 18:24:45 +03:00
gabime
ad18d4e1cb
Added missing include to <spdlog/fmt/xchar.h>
2023-09-22 18:24:45 +03:00
gabime
3979bd15f7
Fixed build
2023-09-22 18:24:45 +03:00
Gabi Melman
768de091ee
Update common.h
2023-09-22 18:24:45 +03:00
Gabi Melman
2718d4671b
Update common.h
2023-09-22 18:24:45 +03:00
gabime
82069b2455
Fixed include <version>
2023-09-22 18:24:45 +03:00
gabime
5ae1ace844
Added loc_with_fmt overload with runtime_format_string
2023-09-22 18:24:45 +03:00
gabime
90e92438c8
clang format
2023-09-22 18:24:45 +03:00
gabime
1faeb5b6fa
Minor cleanups
2023-09-22 18:24:45 +03:00
gabime
b2372fd076
Enable std::source_location if SPDLOG_EMIT_SOURCE_LOCATION is defined
2023-09-22 18:24:45 +03:00
gabime
19d4e60561
Replaced details::make_unique with std::make_unique
2023-09-22 18:24:45 +03:00
gabime
a38add8456
Removed SPDLOG_NO_TLS and updated cmake
2023-09-22 18:24:45 +03:00
gabime
e1ee0c62a7
Replaced SPDLOG_CONSTEXPR and SPDLOG_NOEXCEPT macros with c++20 keywords
2023-09-22 18:24:45 +03:00
gabime
d94830814f
Removed SPDLOG_WCHAR_TO_UTF8_SUPPORT
2023-09-22 18:24:45 +03:00
gabime
1f61f5e019
clang format
2023-06-07 13:23:44 +03:00
H1X4
0ca574ae16
fix build for master fmt (non-bundled) ( #2694 )
...
* fix build for master fmt (non-bundled)
* update fmt_runtime_string macro
* fix build of updated macro
2023-03-31 20:39:32 +03:00
Charles Milette
4f80077339
Support compile-time format string checking with std::format ( #2544 )
...
* Support compile-time format string checking with std::format
* Fix pre-VS 17.5 compilation
* Fix compilation without wchar_t support
* What am I doing
* Bring back fmt optimization
* Move to_string_view to common.h
* Fix SPDLOG_CONSTEXPR_FUNC emitting duplicate symbol errors when building in C++11
* Also add inline on VS 2013
* Appender doesn't work on wide strings
2022-11-12 23:07:11 +02:00
John Armstrong
799802f93b
Add FMT_STRING to allow compilation with FMT_ENFORCE_COMPILE_STRING
2022-05-19 11:32:54 -07:00
Gabi Melman
0d8197cc9d
Update common.h
...
Init file event handlers to nullptr
2022-05-13 23:06:11 +03:00
Kevin Slattery
d89a1e66d8
Add default file-event_handler callbacks. #2374
2022-05-12 19:49:01 -05:00
gabime
128cbe5a06
clang-format
2022-05-08 13:01:45 +03:00
Charles Milette
cd4f6c1466
Replace fmt_helper::to_string by a macro
2022-04-26 23:25:35 -04:00
Charles Milette
ebeb3707b1
Switch to vformat_to
...
Drive-by: reduce the amount of occurences of #ifdef SPDLOG_USE_STD_FORMAT
2022-04-21 21:59:02 -04:00
espkk
e6265c04ae
Make file_event_handlers an aggregate
2022-04-15 11:54:11 +03:00
gabime
c432fdd987
Bump fmt to version 8.1.1 and run clang-format
2022-02-12 13:20:15 +02:00
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...
2022-01-11 15:12:23 +00:00
Vladislav Nepogodin
a087dee98a
🚧 fix building with c++11
2021-12-19 21:48:39 +04:00
Vladislav Nepogodin
f096c615c3
🔥 conditional_cast
2021-12-19 21:37:21 +04:00
Gabi Melman
b3560d1567
Merge pull request #2190 from sylveon/sylveon-patch-1
...
Remove extraneous semicolon
2021-11-25 08:49:33 -08:00
Charles Milette
d5c000394d
Remove extraneous semicolon
2021-11-24 19:25:25 -05:00
LE GARREC Vincent
58e2b455fb
Fix build with "-fvisibility=hidden"
2021-11-25 00:42:27 +01:00
gabime
dc030ec53c
clang-format
2021-11-16 23:44:35 +02:00
gabime
2b4e07dd91
Fixed wchar support for std::format
2021-11-16 23:42:06 +02:00
Gabi Melman
24e47efae0
fix gcc 4.8 compile warning
2021-11-16 22:48:02 +02:00
Charles Milette
126a9fb261
Merge branch 'v1.x' of https://github.com/gabime/spdlog into std-format
2021-11-16 11:30:23 -05:00
Charles Milette
ad779e4865
Attempt to solve ambiguous symbol on older MSVC
2021-11-16 10:10:02 -05:00
gabime
518bf36aa9
removed redundant intialization
2021-11-16 16:44:47 +02:00
gabime
5b7dfefc7e
rename file_event_handlers_t to file_event_handlers
2021-11-16 16:41:04 +02:00
Charles Milette
0ded003703
Fix wchar_t overloads and dump_info formatter
2021-11-15 16:52:31 -05:00
Gabi Melman
a3ad8b5f26
Merge pull request #2169 from seker/v1.x_file_event_handlers
...
file_event_handlers add before_open function
2021-11-15 13:36:03 +02:00
seker
24a551c14e
file_event_handlers add before_open function
2021-11-15 19:14:35 +08:00
Charles Milette
8e359baaec
Merge branch 'v1.x' into std-format
2021-11-14 16:02:38 -05:00
Dimitris Apostolou
591eedcf36
Fix typos
2021-11-13 21:54:08 +02:00
Charless Milette
89c4b1aabe
Fix build issues under C++11
2021-11-13 12:02:40 -05:00
Charless Milette
a31ae23db1
Fix build issue when using built-in fmt
2021-11-13 11:43:19 -05:00
Charless Milette
44a4517e2b
Support C++20 std::format as an alternative to fmtlib
2021-11-13 11:29:05 -05:00
seker
c47ae3b15d
add file event handlers
2021-11-12 09:49:49 +08:00
dkavolis
e471ec884e
remove conditional is_convertible_*
structs for wide chars
2021-08-09 17:33:00 +01:00
dkavolis
cb35191fc1
clang is acting weird with disabled constructors
2021-08-09 09:59:57 +01:00
Gabi Melman
14783585b6
Fix #2022
2021-07-29 10:09:52 +03:00
dkavolis
d8f13cbd5b
replace FormatString template argument with fmt::basic_format_string
2021-07-22 16:23:56 +01:00
gabime
fe1a4f5fb6
Added SPDLOG_FMT_RUNTIME macro for compatibilty with fmt prior 8
2021-07-20 17:18:40 +03:00
gabime
4b3687f1a6
Removed unneeded macro definition
2021-07-19 01:11:45 +03:00
gabime
0f83b33d4f
backward compatibility with fmt version < 8
2021-07-10 13:48:06 +03:00
gabime
d75fd2c7f9
Fixed wchar support under msvc
2021-06-26 19:43:37 +03:00
gabime
68aed6a5eb
Fixed building under c++17
2021-06-26 17:36:57 +03:00
Mikael Lund
cd376a5c43
Allow compilation with nvc++
2021-05-30 13:02:56 +01:00
steven lunt
ee22eed23d
add macros for overriding the individual level names
2021-05-18 19:36:45 -04:00
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
.
2021-05-18 19:25:07 -04:00
gabime
e9635c7b2d
rethrnow non std exceptions to fix #533
2021-05-01 00:29:36 +03:00
steven lunt
2a16d1d230
added spdlog::level::set_string_view to enable alternate log level names without changing the build via SPDLOG_LEVEL_NAMES
2021-03-24 16:22:54 -04:00
gabime
44e1f9f682
Added nonreturn sepcifier to fix #1748
2021-03-17 00:25:26 +02:00
Gabi Melman
609480ed78
Merge pull request #1798 from gv-me/constexpr-log-levels
...
add constexpr to SPDLOG_LEVEL_NAMES declaration
2021-01-21 03:00:49 +02:00
Gaurav Vaidya
53d223b45f
add constexpr to SPDLOG_LEVEL_NAMES declaration
...
for #1791
2021-01-11 11:16:06 +01:00
Charles Milette
9e19012cb0
Remove filename_memory_buf_t from headers
2021-01-10 18:19:28 -05:00
Charles Milette
fc594b551a
Prevent win_eventlog_sink from silently discarding errors when wide support is enabled
2021-01-06 22:17:09 -05:00
Charles Milette
a453bccff0
Better support for / separators on Windows, improve wchar filename coverage
2021-01-06 04:15:14 -05:00
gabime
231ca50700
clang-format
2020-09-26 15:34:05 +03:00
gabime
9cd25dd216
Remove un needed hasher declaration
2020-09-01 23:49:54 +03:00
gabime
15066d1d37
clang-format
2020-04-29 01:19:23 +03:00
Gabi Melman
2170de8819
Update common.h
2020-04-28 18:42:59 +03:00
Gabi Melman
300ec667f6
Update common.h
2020-04-28 18:37:57 +03:00
Gabi Melman
348c4380d6
Fix #1535
2020-04-28 18:01:48 +03:00
Gabi Melman
3b87eb3d08
Moved throw to dedicated function throw_spdlog_ex
2020-03-21 23:25:12 +02:00
gabime
d1819f5f76
clang-format
2020-03-15 18:51:52 +02:00
Martin Vejdarski
0ca2cb625e
Add shared library support for Windows
2020-03-10 03:14:36 +07:00
Dávid Bodor
6e763d2776
only include windows.h when it's unavoidable
2020-02-25 15:36:39 +01:00
gabime
695912c7cf
Optimize ansicolor_sink to use array instead of map to find color codes
2020-02-15 12:06:01 +02:00
gabime
4f66313440
Fix #1308
2019-11-10 00:35:34 +02:00
Cristian Morales Vega
7cdd65075c
"#include" <spdlog/.*> instead of "spdlog/.*"
...
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html )
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
2019-11-06 19:15:29 +00:00
gabime
188afe20f9
Fix issue #1249
2019-09-28 11:20:26 +03:00
Bak, Jin Hyeong
f8e780b9dd
Fix #1239 , Remove basic_string_view_t
2019-09-23 14:48:09 +09:00
gabime
2fed68a73b
Reverted some external template declarations
2019-09-20 01:52:05 +03:00
gabime
5496491aa4
Added extern template declarations
2019-09-20 00:18:36 +03:00
Gabi Melman
35835469d7
Update common.h
2019-09-17 12:52:59 +03:00
Gabi Melman
0d6992fcdd
Update common.h
2019-09-17 12:48:54 +03:00
gabime
1857a44c7c
Fix #1215
2019-09-07 20:11:58 +03:00
gabime
f5492aed12
Unified usage of fmt::memory_buffer across the codebase
2019-08-28 18:46:09 +03:00
gabime
0335e3fcc0
Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined
2019-08-19 11:31:33 +03:00
gabime
b0a25f0183
wip - no-exceptions support
2019-08-18 19:46:28 +03:00
Charles Milette
eb51f37c67
Fix ambiguous overload errors
2019-07-24 13:52:03 -04:00
gabime
39910f5137
Fixed execption include
2019-07-16 15:50:42 +03:00
gabime
fd53472238
Cleaned common.h
2019-07-07 17:22:58 +03:00
Matthias Moulin
be33f5eb89
Added wstring_view_t
2019-07-06 18:59:45 +02:00
Charles Milette
3bcd3cef2f
Fix deprecation warnings in filename_to_str
2019-06-30 19:12:16 -04:00
gabime
78c833a09f
clang-format
2019-06-18 17:05:27 +03:00
gabime
99e519cf0f
Simplify color sinks
2019-06-18 12:32:51 +03:00
gabime
c09dee7717
Moved source filename shortening to pattern formatter instead of macro
2019-06-14 00:23:25 +03:00