Commit Graph

3205 Commits (3f86b250e6214446a42d49ce6691a392444c126c)
 

Author SHA1 Message Date
Gabi Melman 5c410f4ca2
Merge pull request #1430 from tt4g/add-critical-section-to-filename-api
Add critical section to filename function of  each file sink
6 years ago
tt4g 0778211116 Add critical section to filename function of each file sink 6 years ago
Gabi Melman 574563d711
Update tcp_sink.h 6 years ago
Gabi Melman e9d0b424d5
Merge pull request #1427 from dominicpoeschko/patch-1
Handling SPDLOG_PREVENT_CHILD_FD in tcp_sink
6 years ago
dominicpoeschko eef981e05f
Handling SPDLOG_PREVENT_CHILD_FD in tcp_sink
Adding SOCK_CLOEXEC to socket

Fixing bug in sink_it_ (bytes_sent not added to buffer)
6 years ago
gabime 9f24f4bc69 revert last commit 6 years ago
gabime 5da9818676 updated member name in win eventlog sink 6 years ago
gabime ff59b07986 Update tcp_sink.h 6 years ago
gabime 1b6d4fd277 Update tcp_sink.h 6 years ago
gabime 7b19890deb Update tcp_sink.h 6 years ago
gabime 5370443ece clang-format 6 years ago
gabime ad4fb1cf84 Fixed tcp sink 6 years ago
gabime 7f8169f0da Fixed tcp_sink to accept hostnames 6 years ago
gabime 66e8652862 Fix tcp_sink 6 years ago
gabime 05cbdbc1ef moved tcp sink to sinks 6 years ago
Gabi Melman 38584a1fca
Merge pull request #1426 from Proheeler/v1.x
tcp_sink implementation for fluentbit
6 years ago
Vyacheslav d96d8c49ac
Code Style naming 6 years ago
Vyacheslav 4bb623a0a3
removed unneccessary namespace std 6 years ago
Vyacheslav 3aa94a0997
Added send function verification + licence 6 years ago
Vyacheslav ccad4ae04f
Resolve modification requests 6 years ago
v.reshetnikov 346b9ae5a1 tcp_sink implementation for fluentbit 6 years ago
Gabi Melman 12f36debae Merge pull request #1414 from BioDataAnalysis/bda_tests_support_empty_eol
Make tests support empty SPDLOG_EOL
6 years ago
Mario Emmenlauer 87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 6 years ago
Mario Emmenlauer 58a5e654f9 tests/utils.cpp: Use binary mode for reading test results, to preserve EOL 6 years ago
Gabi Melman e278953191 Update win_eventlog_sink.h 6 years ago
Gabi Melman 573ddf8aec
Merge pull request #1424 from dominicpoeschko/patch-2
adding additional log overload to prevent unnecessary fmt::format
6 years ago
gabime 4f32243214 Update comment 6 years ago
gabime 601bdfb1b4 Minor cleanup 6 years ago
gabime 90454a93b2 Update test_eventlog.cpp 6 years ago
gabime 640921cd3f Optimize win_eventlog to avoid string allocation 6 years ago
Gabi Melman fccee959b1
Merge pull request #1418 from ban-dana/v1.x
Add eventlog_sink for logging to Windows Event Log (local only)
6 years ago
bandana2004 67a8ecf2bf Remove registration and stderr reporting from win_eventlog_sink 6 years ago
bandana2004 d8701890b2 cleanup win_eventlog_sink 6 years ago
bandana2004 2435f46d06 fix registry key handle leak in win_eventlog_sink::add_registry_info 6 years ago
bandana2004 4bece787c8 Refactor Event Log sink 6 years ago
Gabi Melman d4ce938679
Merge pull request #1423 from dominicpoeschko/patch-1
Properly handling SPDLOG_PREVENT_CHILD_FD
6 years ago
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.
6 years ago
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
6 years ago
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.
6 years ago
Gabi Melman f3d99f41d4
Merge pull request #1422 from mr-c/post_installation_testing
Enable running the tests against an installed copy of spdlog
6 years ago
Gabi Melman fdb46b857f
Merge pull request #1407 from vitlav/fix-GNUInstallDirs-using
CMakeLists.txt: put GNUInstallDirs after set project language
6 years ago
Michael R. Crusoe 8d06df9775
Enable building & running the example against an installed copy of spdlog 6 years ago
Michael R. Crusoe a8d6e60ec6
Enable running the tests against an installed copy of spdlog 6 years ago
Gabi Melman 4e643fa42c
Merge pull request #1421 from tt4g/ctest-run-serial
Don't run spdlog-utests and spdlog-utests-ho in parallel
6 years ago
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.
6 years ago
bandana2004 db1a221427 Add eventlog_sink for logging to Windows Event Log (local only). 6 years ago
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()
6 years ago
Mario Emmenlauer 622f5eb967 tests/utils.h: removed duplicate entry for count_lines() 6 years ago
Gabi Melman 966d827d35
Update LICENSE 6 years ago
Gabi Melman bed56d3e52
Update LICENSE 6 years ago