Commit Graph

4589 Commits

Author SHA1 Message Date
gabime
fefda8dd15 try to fix test 2024-11-29 16:45:03 +02:00
gabime
7fe73d96b9 Fix ci 2024-11-29 16:28:36 +02:00
gabime
ddf14d67df Fix comment 2024-11-29 16:25:51 +02:00
gabime
0ef49d7df6 Minor cleanup 2024-11-29 16:15:13 +02:00
gabime
bb3d25b626 Added [[nodiscard]] and made should_flush_ const 2024-11-29 16:11:13 +02:00
gabime
15814dba5b clean source_loc.h 2024-11-29 15:30:00 +02:00
gabime
eccaa62e9d clean source_loc.h 2024-11-29 15:29:43 +02:00
Gabi Melman
63535f140b
V2.x no std format (#3271)
Some checks are pending
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[asan:ON build_type:Debug … (push) Waiting to run
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Debug compiler… (push) Waiting to run
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Release compil… (push) Waiting to run
macos / macOS Clang (C++17, Release) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:ON WCHAR_FILES:ON]) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 16 2019 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 16 2019 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
* Removed SPDLOG_USE_STD_FORMAT

* Removed SPDLOG_USE_STD_FORMAT

* clang-format

* Fix windows.yml ci

* Fix ci
2024-11-29 15:25:29 +02:00
gabime
9fea0e5fa8 Fix windows compile (clang-format ordering( 2024-11-29 14:30:14 +02:00
gabime
7c6f737990 Fix windows compile of log_msg_buffer.cpp 2024-11-29 14:14:24 +02:00
gabime
1d2138fdbe always use std::string_view and remove is_convertible_to_sv 2024-11-29 13:56:45 +02:00
gabime
0641ddec58 always use std::string_view and remove is_convertible_to_sv 2024-11-29 13:56:27 +02:00
gabime
fb3969d540 alwaus use std::string_view 2024-11-29 13:52:17 +02:00
gabime
62534f2e4e clang format 2024-11-29 13:40:40 +02:00
gabime
eacd4d6b2a Remove mdc 2024-11-29 13:32:15 +02:00
gabime
14a202580b Update readme ci tsan to debug 2024-11-29 13:15:15 +02:00
gabime
f20fe2a121 Update readme ci 2024-11-29 13:12:06 +02:00
gabime
50ea0cc1aa Removed appveyor ci 2024-11-29 13:06:44 +02:00
gabime
6ea6b065ba Clean prev source_loc impl leftovers 2024-11-29 13:04:08 +02:00
gabime
c7fc302710 Fixed soruce_loc test 2024-11-29 13:00:13 +02:00
gabime
64a013fd16 Fixed soruce_loc test 2024-11-29 12:59:31 +02:00
gabime
9c1b76fe72 Added no source location tests and fixed source location tests 2024-11-29 12:54:53 +02:00
gabime
3fc14822ef Fix source_loc test 2024-11-29 12:20:21 +02:00
gabime
968dcfbc6b Remove SPDLOG_SOURCE_LOCATION support 2024-11-29 12:12:20 +02:00
gabime
67628a459a Fix ci windows 2024-11-29 11:51:19 +02:00
gabime
89a01c4bba Fix ci windows 2024-11-29 11:46:33 +02:00
gabime
5c4f5f42c8 Fix ci windows 2024-11-29 11:42:11 +02:00
gabime
9dab02aa2c Fix ci windows 2024-11-29 11:36:33 +02:00
Gabi Melman
4b301e710a
Update windows.yml 2024-11-29 11:26:39 +02:00
Gabi Melman
fba921b6d8
Update windows.yml 2024-11-29 11:09:38 +02:00
gabime
79422fe1dc Added missing include 2024-11-29 10:57:25 +02:00
gabime
905312eadd Fixed build replaced string_view_t 2024-11-29 10:50:10 +02:00
gabime
24afd40000 Fix ci 2024-11-29 10:25:43 +02:00
gabime
7c6512ff72 Fix ci 2024-11-29 10:22:43 +02:00
gabime
850ee25648 Commented out problematic gcc-9 log(..) overrides 2024-11-29 10:18:07 +02:00
gabime
30f0681ab4 Fix windows ci
Some checks failed
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[asan:ON build_type:Debug … (push) Has been cancelled
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Debug compiler… (push) Has been cancelled
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Release compil… (push) Has been cancelled
linux / OS X Clang (C++17, Release) (push) Has been cancelled
macos / macOS Clang (C++17, Release) (push) Has been cancelled
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:OFF WCHAR_FILES:OFF]) (push) Has been cancelled
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:ON WCHAR_FILES:ON]) (push) Has been cancelled
windows / build (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Has been cancelled
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 16 2019 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Has been cancelled
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 16 2019 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Has been cancelled
2024-11-26 13:59:22 +02:00
gabime
d808eb8eca fix comment
Some checks are pending
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[asan:ON build_type:Debug … (push) Waiting to run
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Debug compiler… (push) Waiting to run
linux / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }} ${{ matrix.config.build_type }} ${{ matrix.config.asan == 'ON' && 'ASAN' || '' }}${{ matrix.config.tsan == 'ON' && 'TSAN' || '' }}) (map[build_type:Release compil… (push) Waiting to run
linux / OS X Clang (C++17, Release) (push) Waiting to run
macos / macOS Clang (C++17, Release) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:OFF BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:ON WCHAR:ON WCHAR_FILES:ON]) (push) Waiting to run
windows / build (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:17 FATAL_ERRORS:ON GENERATOR:Visual Studio 16 2019 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
windows / build_2019 (map[BUILD_EXAMPLE:ON BUILD_SHARED:ON BUILD_TYPE:Release CXX_STANDARD:20 FATAL_ERRORS:ON GENERATOR:Visual Studio 17 2022 USE_STD_FORMAT:OFF WCHAR:OFF WCHAR_FILES:OFF]) (push) Waiting to run
2024-11-26 13:48:25 +02:00
gabime
419b4bd983 Updated ci to use c++17 2024-11-26 13:40:03 +02:00
gabime
1d66ca8c0b Ported ci from v1.x branch 2024-11-26 13:36:21 +02:00
gabime
d94311ad6b Use std::string_view in level names and ansicolor_sink.h 2024-11-26 13:35:01 +02:00
Gabi Melman
c122eaf749 Gabime/tsan (#3237)
* Fixed race condition in tests

* Support for thread sanitizer
2024-11-26 11:20:40 +02:00
gabime
0e95bba098 Fixed race condition in tests 2024-11-26 11:14:03 +02:00
gabime
496c5fd145 Bump fmt to 11.0.2
Some checks failed
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[asan:OFF build_type:Release compiler:clang cppstd:20 versio… (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[asan:ON build_type:Debug compiler:clang cppstd:20 version:15]) (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Debug compiler:gcc cppstd:17 version:11]) (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Debug compiler:gcc cppstd:20 version:11]) (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Release compiler:clang cppstd:17 version:15]) (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Release compiler:gcc cppstd:17 version:13]) (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Release compiler:gcc cppstd:20 std_format:OFF ve… (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Release compiler:gcc cppstd:20 std_format:ON ver… (push) Has been cancelled
ci / ${{ matrix.config.compiler}} ${{ matrix.config.version }} (C++${{ matrix.config.cppstd }}, ${{ matrix.config.build_type }} DSPDLOG_USE_STD_FORMAT=${{ matrix.config.std_format || 'OFF' }}) (map[build_type:Release compiler:gcc cppstd:20 version:13]) (push) Has been cancelled
ci / OS X Clang (C++17, Release) (push) Has been cancelled
2024-11-25 10:35:32 +02:00
mq白
8563a6ab59 Improve Cross-Platform Build Instructions in Documentation (#3229)
* Update build

* Simplified build command length for cross-platform compatibility.

* Modified to replace `make -j` only with `cmake --build.`
2024-11-25 10:26:59 +02:00
hydai
e4d81a5be9 Fix warning - extra ';' for -Wextra-semi (#3198)
Signed-off-by: hydai <z54981220@gmail.com>
2024-11-25 09:56:41 +02:00
gabime
eab1f6d5f5 Fix #3194 month name 2024-11-25 09:52:31 +02:00
Uilian Ries
4effc91705 Update conan install command in README (#3172)
Signed-off-by: Uilian Ries <uilianries@gmail.com>
2024-11-25 09:47:24 +02:00
Leslie
a3d3df0a56 use std::lock_guard instead of std::unique_lock (#3179) 2024-11-25 09:45:42 +02:00
Rasmus
15fcde8ee3 Add info about max_files in the docstrings of hourly/daily file sinks (#3170) 2024-11-25 09:44:46 +02:00
gabime
e01fa1a5fd compilation error gcc 8.5 with [-Werror=suggest-override] (#3158) 2024-11-25 09:44:13 +02:00