Commit Graph

2483 Commits

Author SHA1 Message Date
gabime
112a7ada74 Fixd copy ellision warning in tests 2019-01-08 17:33:31 +02:00
gabime
452ba76507 Fixed conversion warnings 2019-01-08 17:31:46 +02:00
gabime
2ac42c0d14 Bumped fmt to version 5.3.0 2019-01-08 17:09:07 +02:00
Gabi Melman
0955ea5b85
Merge pull request #945 from cneumann/fix-external-fmt
Fix handling of external fmt lib
2018-12-17 19:34:49 +02:00
Carsten Neumann
084bc72d90 Fix handling of external fmt lib
Using an external fmt lib should cause the spdlog::spdlog target to have
a dependency on fmt lib - so that a consuming project does not need
to call find_package(fmt) and target_link_libraries(... fmt::fmt).

To this end a new cmake option SPDLOG_FMT_EXTERNAL is introduced which
makes spdlog depend on fmt lib and defines the SPDLOG_FMT_EXTERNAL macro
to avoid using the bundled fmt lib. The value of SPDLOG_FMT_EXTERNAL is
also stored in the installed spdlogConfig.cmake and if it is ON
find_dependency() is used to ensure the fmt::fmt target is imported.
2018-12-17 10:18:16 -06:00
Gabi Melman
57e2193432
Merge pull request #939 from peergynt/fix-typos
Fix typos
2018-12-06 23:21:22 +02:00
Jerome Meyer
ce8cf1e152 Fix typos 2018-12-06 16:06:01 -05:00
gabime
3da189f7c0 SPDLOG_TRACE to check log level before calling the logger 2018-12-06 13:27:00 +02:00
gabime
058d2d1bd4 Use default pattern in latency test 2018-12-06 11:37:49 +02:00
Gabi Melman
f70f2f8c62
Merge pull request #936 from bzindovic/v1.x
Corrected the text alignment in the example
2018-12-06 03:22:21 +02:00
Budo Zindovic
8d6086da48
Corrected the text alignment in the example
I've changed the alignment character in the example to illustrate left alignment of text.
2018-12-06 01:30:07 +01:00
gabime
bd6d88b884 Removed uneeded locale include 2018-12-05 18:03:56 +02:00
gabime
4003218ceb Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 2018-12-04 12:29:01 +02:00
gabime
ec3f2b76b0 Strip path from __FILE__ in SPDLOG_TRACE macros 2018-12-04 12:28:21 +02:00
gabime
fcb661d0e9 Fixed tests 2018-12-02 19:04:44 +02:00
gabime
d8eb0558e9 Fix test for mingw 2018-12-02 17:13:50 +02:00
Gabi Melman
5191948b64
Update appveyor.yml 2018-12-02 16:40:02 +02:00
Gabi Melman
7442d720f4
Update appveyor.yml 2018-12-02 16:30:07 +02:00
Gabi Melman
bbc859ca19
Update .travis.yml 2018-12-02 15:25:03 +02:00
gabime
7275fb6f52 simplify SPDLOG_BUILD_TESTS Cmake option 2018-12-02 12:25:46 +02:00
Gabi Melman
2d50202b2d
Merge pull request #934 from dpacbach/ctest-fix
CMake: include(CTest) only when building tests.
2018-12-02 13:49:50 +02:00
David P. Sicilia
f5dc16603e Enable testing in the Travis config file.
This is needed because ENABLE_TESTING is no longer enabled by
default.
2018-12-01 20:57:45 -05:00
David P. Sicilia
85b4d7c8d6 CMake: include(CTest) only when building tests.
This is needed in order to support usage of this library as a
subdirectory in a parent project.  In that situation, prior
to this change, the inclusion of CTest would unconditionally
enable BUILD_TESTING which would then bleed into other parts
of the project.

Also added some comments explaining how this logic works.
2018-12-01 20:37:06 -05:00
gabime
f0c962d274 source_loc ctor: brace init members 2018-11-29 12:55:14 +02:00
Gabi Melman
486b6937d3
Merge pull request #929 from dpacbach/warnings-fix
Fix some minor warnings found with a recent clang version
2018-11-28 07:59:32 +02:00
David P. Sicilia
a6152ebadd Make an implicit cast from int --> uint32_t explicit.
Perhaps this casting should not happen to begin with, but better
to make it explicit where it is happening for readability.  This
fixes a compiler warning.
2018-11-27 20:24:21 -05:00
David P. Sicilia
63a475d88c Do not attempt to default operator= when it is implicitly deleted 2018-11-27 20:23:51 -05:00
Gabi Melman
3eba3224c8
Merge pull request #926 from lestera/patch-1
Fix exceptions on file size calculation on Windows XP x64 and Windows Server 2003 x64
2018-11-27 16:08:30 +02:00
Adi Lester
247c4e55e7
Update os.h 2018-11-27 14:39:41 +02:00
Adi Lester
26d7c27bee
Use _filelengthi64 instead of _fstat64 to calculate file size on x64 machines
For some reason, `_fstat64` fails with errno 22 on Windows Server 2003 x64 when compiled using the `v141_xp` toolset.
Using `_filelengthi64` instead solves this issue
2018-11-27 14:16:25 +02:00
Gabi Melman
b492642282
Update fmt_helper.h 2018-11-27 11:37:09 +02:00
gabime
cff78f5833 Move logging macros outside the spdlog namespace 2018-11-25 11:20:27 +02:00
gabime
4ba19821ce Fixed compilation for vs2013 2018-11-25 10:54:06 +02:00
gabime
1e385851d7 Removed padding from from bench_formatters/all 2018-11-25 01:12:12 +02:00
gabime
4643f74a03 Added the all flag to bench formatter 2018-11-25 00:46:24 +02:00
gabime
6453d396bf Added the all flag to bench formatter 2018-11-25 00:45:43 +02:00
gabime
92921f767e clang-format 2018-11-25 00:44:51 +02:00
gabime
c251c4ccbb Added the all flag to bench formatter 2018-11-25 00:44:27 +02:00
gabime
0ce670e45a Store level names as string_views 2018-11-25 00:36:14 +02:00
gabime
2671b48a6c Minor performance fix in full formatter 2018-11-24 23:57:39 +02:00
gabime
382478259f Fix compilation for msvc 2015 2018-11-24 18:27:27 +02:00
gabime
e3c333be47 pattern_formatter - padding_info small refactor 2018-11-24 18:21:25 +02:00
gabime
a1a463787f Updated example's comment 2018-11-24 18:15:24 +02:00
gabime
a16ff07a06 Show source location if present in default formatter 2018-11-24 18:00:56 +02:00
gabime
3218caf34a Added some comments 2018-11-24 17:34:33 +02:00
gabime
01583ef540 Clean macros 2018-11-24 17:15:58 +02:00
gabime
dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 2018-11-24 17:08:13 +02:00
Gabi Melman
1293af093c
call flush_() instead of flush() from looger::sink_it_() 2018-11-24 11:11:03 +02:00
gabime
2998815166 Added missing test file 2018-11-22 21:35:11 +02:00
gabime
9484c4dc05 clang-format 2018-11-22 19:18:43 +02:00