Commit Graph

3067 Commits

Author SHA1 Message Date
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
Gabi Melman
09d729bfba
Update README.md 2019-12-22 19:46:56 +02:00
Gabi Melman
9caaca742e
Update README.md 2019-12-22 19:42:08 +02:00
Gabi Melman
ac95c3ffbf
Update README.md 2019-12-22 19:40:50 +02:00
Gabi Melman
9715d80030
Update README.md 2019-12-22 19:39:52 +02:00
Gabi Melman
a0a1e5c078
Update README.md 2019-12-22 19:37:42 +02:00
Gabi Melman
d7ba1fdd3d
Update README.md 2019-12-22 19:36:58 +02:00
Gabi Melman
c73a5ff918
Merge pull request #1367 from mike239x/v1.x
Fix a small problem in the basic example
2019-12-20 12:42:57 +02:00
Mike Lezhnin
9858d4e918 Fix a small problem in the basic example
The line
```
SPDLOG_TRACE("Some trace message with param {}", {});
```
which normally is discarded at the compile time since by deafult
`SPDLOG_ACTIVE_LEVEL` is at `SPDLOG_LEVEL_INFO`. If however, one goes
to `tweak.me` and sets
```
 #define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_TRACE
```
suddenly the basic example does not compile any more.
This commit fixes the potential problem.
2019-12-20 11:05:38 +01:00
gabime
d52e825bbc clang-format 2019-12-13 00:12:05 +02:00
gabime
ebaa16f403 CMakeLists.txt allow overriding the cpp standard to higher than 11 2019-12-12 23:52:22 +02:00
gabime
175741ed1d Bump fmt to 6.1.2 2019-12-12 23:50:30 +02:00
gabime
0f8f510ebb removed junk file 2019-12-11 01:27:27 +02:00
gabime
25a702fc22 Update fmt.h 2019-12-10 03:03:08 +02:00
gabime
ab178057db Fixed (maybe) #1348 2019-12-10 03:00:06 +02:00