Commit Graph

3634 Commits

Author SHA1 Message Date
Gabi Melman
12f36debae Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol
Make tests support empty SPDLOG_EOL
2020-02-10 13:12:07 +02:00
Mario Emmenlauer
87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 2020-02-10 11:26:48 +01:00
Mario Emmenlauer
58a5e654f9 tests/utils.cpp: Use binary mode for reading test results, to preserve EOL 2020-02-10 11:26:48 +01:00
Gabi Melman
e278953191 Update win_eventlog_sink.h 2020-02-10 02:23:25 +02:00
Gabi Melman
573ddf8aec
Merge pull request #1424 from dominicpoeschko/patch-2
adding additional log overload to prevent unnecessary fmt::format
2020-02-10 01:31:08 +02:00
gabime
4f32243214 Update comment 2020-02-10 00:54:43 +02:00
gabime
601bdfb1b4 Minor cleanup 2020-02-10 00:53:01 +02:00
gabime
90454a93b2 Update test_eventlog.cpp 2020-02-10 00:37:48 +02:00
gabime
640921cd3f Optimize win_eventlog to avoid string allocation 2020-02-10 00:37:45 +02:00
Gabi Melman
fccee959b1
Merge pull request #1418 from ban-dana/v1.x
Add eventlog_sink for logging to Windows Event Log (local only)
2020-02-09 23:27:00 +02:00
bandana2004
67a8ecf2bf Remove registration and stderr reporting from win_eventlog_sink 2020-02-09 22:59:02 +02:00
bandana2004
d8701890b2 cleanup win_eventlog_sink 2020-02-09 18:12:54 +02:00
bandana2004
2435f46d06 fix registry key handle leak in win_eventlog_sink::add_registry_info 2020-02-09 18:04:38 +02:00
bandana2004
4bece787c8 Refactor Event Log sink 2020-02-09 15:12:30 +02:00
Gabi Melman
d4ce938679
Merge pull request #1423 from dominicpoeschko/patch-1
Properly handling SPDLOG_PREVENT_CHILD_FD
2020-02-08 14:05:38 +02:00
dominic
033fe9f133 Properly handling SPDLOG_PREVENT_CHILD_FD
Removed check for posix version so that missing O_CLOEXEC leads to
compiler error.

Removed extra function since it hat no real purpose anymore.

Error behavior between Windows and Unix now equivalent.
2020-02-08 12:15:05 +01:00
dominicpoeschko
25b10dc264 additional log overload
calling log with a string_view as msg called
```
 template<typename... Args>
    void log(source_loc loc, level::level_enum lvl, string_view_t fmt, const Args &... args)
```

instead of
```
template<class T, typename std::enable_if<std::is_convertible<const T &, spdlog::string_view_t>::value, T>::type * = nullptr>
    void log(source_loc loc, level::level_enum lvl, const T &msg)
```

which lead to an unnecessary call to fmt::format
2020-02-08 11:11:04 +01:00
dominicpoeschko
a9c3630d1b
Properly handling SPDLOG_PREVENT_CHILD_FD
Using the SPDLOG_PREVENT_CHILD_FD option there where still a race when
a other thread was using fork and exec in between the call to fopen and fcntl.

Using open and O_CLOEXEC when possible prevents this race.

I have no idea if this problem  exists on Windows.
2020-02-07 17:59:11 +01:00
Gabi Melman
f3d99f41d4
Merge pull request #1422 from mr-c/post_installation_testing
Enable running the tests against an installed copy of spdlog
2020-02-07 18:23:50 +02:00
Gabi Melman
fdb46b857f
Merge pull request #1407 from vitlav/fix-GNUInstallDirs-using
CMakeLists.txt: put GNUInstallDirs after set project language
2020-02-07 18:22:03 +02:00
Michael R. Crusoe
8d06df9775
Enable building & running the example against an installed copy of spdlog 2020-02-07 16:09:20 +01:00
Michael R. Crusoe
a8d6e60ec6
Enable running the tests against an installed copy of spdlog 2020-02-07 15:39:26 +01:00
Gabi Melman
4e643fa42c
Merge pull request #1421 from tt4g/ctest-run-serial
Don't run spdlog-utests and spdlog-utests-ho in parallel
2020-02-07 15:49:25 +02:00
tt4g
eb234bbf91 Don't run spdlog-utests and spdlog-utests-ho in parallel
spdlog-utests and spdlog-utests-ho use the same log output directory, so some tests will randomly fail when run in parallel.
2020-02-07 22:20:54 +09:00
bandana2004
db1a221427 Add eventlog_sink for logging to Windows Event Log (local only). 2020-02-07 15:04:47 +02:00
Gabi Melman
5378f35239
Merge pull request #1417 from BioDataAnalysis/bda_fix_trivial_issue_in_test_utils
tests/utils.h: removed duplicate entry for count_lines()
2020-02-07 12:49:13 +02:00
Mario Emmenlauer
622f5eb967 tests/utils.h: removed duplicate entry for count_lines() 2020-02-07 10:22:58 +01:00
Gabi Melman
966d827d35
Update LICENSE 2020-02-03 22:32:17 +02:00
Gabi Melman
bed56d3e52
Update LICENSE 2020-02-03 21:12:12 +02:00
Gabi Melman
24173d5ebc
Update LICENSE 2020-02-03 21:11:45 +02:00
Gabi Melman
60853b5e54
Update LICENSE 2020-02-02 14:20:44 +02:00
Gabi Melman
da2ff552c5
Update LICENSE 2020-02-02 14:20:24 +02:00
Gabi Melman
742df52236
Update license to add note about fmt lib dependecy 2020-02-02 14:16:57 +02:00
Vitaly Lipatov
1b4621962f CMakeLists.txt: put GNUInstallDirs after set project language 2020-01-30 14:51:42 +03:00
Gabi Melman
0a36828ff3
Merge pull request #1394 from ruoshui1314/v1.x
add max files for rotating days
2020-01-19 12:34:57 +02:00
weiy
85ea4297b9 update method name 2020-01-19 17:29:17 +08:00
weiy
34cc3419fa add max files for rotating days 2020-01-19 13:52:01 +08:00
weiy
46fcd2e844 add max files for rotating days 2020-01-19 13:46:43 +08:00
Gabi Melman
23f0cdf901
Merge pull request #1389 from XNephila/support-on-MacPorts
latest spdlog now available on MacPorts
2020-01-14 01:06:42 +02:00
X Nephila
26bdf66659
latest spdlog now available on MacPorts
I am the maintainer of spdlog on MacPorts, now the latest version(1.4.2) of spdlog is available on MacPorts.
2020-01-14 07:04:27 +08:00
Gabi Melman
cf6f1dd01e
Merge pull request #1387 from gocarlos/patch-1
docs: spdlog now available in conan center, bincrafters repo is deprecated
2020-01-13 10:06:56 +02:00
Carlos Gomes Martinho
286eb59081
docs: spdlog now available in conan center 2020-01-13 08:40:01 +01:00
Gabi Melman
40bb28e9b6
Merge pull request #1378 from ldanko/v1.x
meson: add fallback to fmt dependency
2020-01-02 04:10:50 +02:00
Łukasz Dańko
aac085a9be meson: add fallback to fmt dependency
Now `fmt` library can be used as subproject which helps with cross
compilation.
2020-01-01 23:59:32 +01:00
Gabi Melman
58e68901c7
Merge pull request #1370 from segfault-magnet/bugfix/invalid_meson_option
Fix invalid meson option
2019-12-23 17:44:31 +02:00
Ahmed Sagdati
8e69c6e492 Fix invalid meson option 2019-12-23 15:57:16 +01:00
gabime
4d98a14cb1 Updated fmt.cpp to 6.1.2 2019-12-22 22:54:31 +02:00
gabime
5bf99dfd61 Renamed loaders.cpp to cfg.cpp 2019-12-22 22:51:52 +02:00
gabime
bc42415ceb Updated fmt.cpp to 6.1.2 2019-12-22 22:51:12 +02:00
gabime
284e6a80ac Fixed cfg tests 2019-12-22 22:33:19 +02:00