Commit Graph

169 Commits

Author SHA1 Message Date
Charles Milette
fc594b551a Prevent win_eventlog_sink from silently discarding errors when wide support is enabled 2021-01-06 22:17:09 -05:00
Charles Milette
f39ccccc0c Fix linker error 2021-01-06 21:52:59 -05:00
Charles Milette
a453bccff0 Better support for / separators on Windows, improve wchar filename coverage 2021-01-06 04:15:14 -05:00
Amir Alperin
c67974e4c8 replace deprected wchar string conversion 2020-12-16 01:14:55 +02:00
gabime
0317731dc9 Fix #1569 2020-05-26 23:34:17 +03:00
Martin Vejdarski
0ca2cb625e Add shared library support for Windows 2020-03-10 03:14:36 +07:00
gabime
c10be7eaec merge with v1.x 2020-02-26 18:13:13 +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
gabime
0f24399887 wip 2019-12-08 17:08:20 +02:00
gabime
4d41fdf0fc Wip 2019-12-08 13:35:15 +02:00
Cristian Morales Vega
7cdd65075c "#include" <spdlog/.*> instead of "spdlog/.*"
The meaning of using quotes to #include is implementation defined, so it
may or not may be what we want. At least POSIX
(https://pubs.opengroup.org/onlinepubs/9699919799/utilities/c99.html)
says: "headers whose names are enclosed in double-quotes ( "" ) shall be
searched for first in the directory of the file with the #include line",
so not what we want since "spdlog" ends up twice in the path.
2019-11-06 19:15:29 +00:00
gabime
57085c892f exclude from compilation prevent_child_fd() if SPDLOG_PREVENT_CHILD_FD not defined 2019-11-04 16:42:58 +02:00
gabime
dbe5c17a96 Renamed file_exists()->path_exists() 2019-10-25 15:56:23 +03:00
gabime
e9d42e059f // support forward slash in windows 2019-10-25 12:52:39 +03:00
Gabi Melman
d3c6974e99 Update os.h 2019-10-20 19:09:37 +03:00
gabime
9b7812a0f2 auto create log dir 2019-10-20 17:40:56 +03:00
Florian Pigorsch
4aad51a352 Fix some spelling errors.
casese -> cases (1)
chache -> cache (1)
cirucal -> circular (1)
dependecy -> dependency (1)
detrmine -> determine (2)
eavluate -> evaluate (1)
exertnal -> external (1)
ony -> only (1)
registation -> registration (3)
registring -> registering (2)
regsistration -> registration (3)
seperate -> separate (2)
wit -> with (1)
withe -> with (1)
2019-10-19 09:42:38 +02:00
Bak, Jin Hyeong
f8e780b9dd Fix #1239, Remove basic_string_view_t 2019-09-23 14:48:09 +09:00
gabime
494cc8bace Implemented daily sink rotation #661 2019-09-15 18:34:29 +03:00
gabime
f5492aed12 Unified usage of fmt::memory_buffer across the codebase 2019-08-28 18:46:09 +03:00
Charles Milette
f529afa625 Use stack allocated space when possible 2019-06-30 21:34:19 -04:00
Charles Milette
3bcd3cef2f Fix deprecation warnings in filename_to_str 2019-06-30 19:12:16 -04:00
gabime
bcfa9241b8 Updated copyright headers 2019-06-04 00:09:16 +03:00
gabime
6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 2019-05-12 00:22:39 +03:00
gabime
46ef71e3ec Normalized copyright message 2019-05-11 20:06:17 +03:00
gabime
9564eb2edb Moved cpp files to inl.h 2019-05-11 13:19:53 +03:00
Gabi Melman
14381fe8d0 Update os.h 2019-05-11 03:05:22 +03:00
gabime
5d0eb6dda5 wip static-lib 2019-05-08 17:16:56 +03:00
gabime
69fcaf14e5 wip static-lib 2019-04-27 18:44:48 +03:00
gabime
c1c2ff2d07 wip 2019-04-27 02:33:33 +03:00
gabime
2aceb13f3e fix support for utf8 logging under win32 2019-04-05 23:34:55 +03:00
gabime
156b856a80 static lib wip 2019-04-05 16:57:49 +03:00
gabime
e2e3df9013 static lib wip 2019-04-05 16:44:17 +03: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
gabime
50648553cf clang-format 2018-11-21 16:02:02 +02:00
gabime
8a0fc92f20 Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS 2018-11-15 16:42:42 +02:00
gabime
b368d18b0f Added default logger API 2018-10-12 03:04:55 +03:00
gabime
f4c5c5a367 Replaced noexcept with SPDLOG_NOEXCEPT 2018-10-10 01:01:37 +03:00
gabime
d0beac70bd Removed dead code from os.h 2018-10-10 00:29:34 +03:00
gabime
cbf66ac653 Removed dead code from os.h 2018-10-10 00:29:21 +03:00
gabime
98f9cb8c1f Added noexcept to most of details::os functions 2018-10-10 00:26:52 +03:00
eruiz
39492436ec WIN32: Don't deny access to file sinks from other processes 2018-08-23 12:20:26 -03:00
gabime
9e4925eff0 clang format 2018-07-21 23:48:07 +03:00
gabime
38b3ecb02e use fmt::safe_strerror 2018-06-01 17:07:39 +03:00
gabime
4ec17f1a1a Normalized spdlog include paths 2018-04-29 01:43:42 +03:00
gabime
c962c88342 Fixed linux port of v1.x 2018-04-20 13:20:19 +03:00
gabime
9bffa921ae global mutex stdout stderr sinks 2018-04-16 01:07:22 +03:00
gabime
3fdc7996db code formatting 2018-04-09 15:14:13 +03:00
Gabi Melman
b416685d6f Fix gcc warning on stat (32 bits) 2018-04-09 02:06:33 +03:00