Commit Graph

1077 Commits (bff1a6036aff4c71bdd38cac0bf1d6c42432c29a)

Author SHA1 Message Date
gabime 70d3c2cd3e so::getenv - Always empty string under windows uwp since it's not supported 6 years ago
gabime 3d203aa7c4 Simplify and removed SPDLOG_PATTERN support 6 years ago
gabime cd8d7e6de9 wip 6 years ago
gabime 5d4e6f17ee wip 6 years ago
gabime 49f707ec93 wip 6 years ago
gabime 35e9482574 wip 6 years ago
gabime dac61d4e9c merge 6 years ago
gabime 8d9d9899b7 wip 6 years ago
gabime 0f24399887 wip 6 years ago
gabime 4d41fdf0fc Wip 6 years ago
gabime 1aa9ea92e2 Fix #1340 6 years ago
gabime d25fb08a75 clang-format 6 years ago
gabime 79e105243c Fix #1335 6 years ago
gabime 2d4e531ac9 Fix #1327 6 years ago
Florin Iucha c172c72be9 Fix compiler warnings 6 years ago
Gabi Melman 79259fdb3f
Update os-inl.h 6 years ago
gabime cee35f7d24 Added truncate flag (issue #1297) 6 years ago
gabime 26f706ebe3 Fixed #1302 6 years ago
gabime 0cb38085a1 Updated ringbuffer sink 6 years ago
Gabi Melman cff6644b28
Merge pull request #1307 from eudoxos/ringbuffer-sink
Add ringbuffer sink
6 years ago
Václav Šmilauer 63837530ed Fix circular_q::size() empty case 6 years ago
Václav Šmilauer daef0a2374 Fix circular_q::size() 6 years ago
Václav Šmilauer 042045b998 typo fix 6 years ago
Václav Šmilauer bad7284465 Fix cicular_q::size() 6 years ago
Václav Šmilauer 6f0cb6365e Move ringbuffer_sink to spdlog::details::circular_q, enhance its API: size(), at(i) 6 years ago
gabime bff85725d2 Fixed some more clang-tidy warnings 6 years ago
gabime 93008b2369 Fix clang-tidy warning about non existing move 6 years ago
gabime be336e7514 Added noexcept to log_msg move constructor 6 years ago
gabime 255f7f2dee Optimze backtracer operator= 6 years ago
gabime de2c07ac62 always cache gmt offset 6 years ago
gabime 844d54d7e6 Fix #1302 6 years ago
gabime ff3e6c7248 Fix issue #1306 6 years ago
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.
6 years ago
gabime 10116b7717 Removed SPDLOG_NO_DATETIME option 6 years ago
gabime dae1aeb1f7 clang-format 6 years ago
gabime 57085c892f exclude from compilation prevent_child_fd() if SPDLOG_PREVENT_CHILD_FD not defined 6 years ago
Charles Milette 0e09ecbaa5
Correctly guard SetHandleInformation API call
`__cplusplus_winrt` only detected C++/CX (which can be used without compiling for UWP, SetHandleInformation would be available in those cases), and did not detect native UWP C++. This patch fixes that by using the WINAPI_FAMILY_PARTITION macro in the Windows SDK headers in the same way those headers remove SetHandleInformation in UWP builds.
6 years ago
gabime e3699070a4 clang-format 6 years ago
gabime cae6c9ab36 Removed lazy argument evaluation from macros 6 years ago
Michael Mullin 5881fcb0d6 Remove unused variable 6 years ago
Gabi Melman 491a2e8732
Update os-inl.h 6 years ago
gabime 05105155f8 refactoed file_helper 6 years ago
gabime 9f96545fa7 refactoed file_helper 6 years ago
gabime 0c60107e62 refactoed file_helper 6 years ago
gabime aac7dccf45 comment 6 years ago
gabime c19e325b83 Added some tests for create_dir 6 years ago
gabime bd92c23add comment 6 years ago
gabime a4602021d8 Renamed private members of file_helper 6 years ago
gabime dbe5c17a96 Renamed file_exists()->path_exists() 6 years ago
gabime c40555c0ac clang-format 6 years ago
gabime a1f283946e updated os::dir_name and tests 6 years ago
gabime 066087b383 Update create_dir 6 years ago
gabime e9d42e059f // support forward slash in windows 6 years ago
Gabi Melman d3c6974e99
Update os.h 6 years ago
Gabi Melman 1271081865
Update os-inl.h 6 years ago
Gabi Melman 8a638a95a0
Update os-inl.h 6 years ago
Gabi Melman d9f726f2a5
Add global namespace qualifiers to global function calls in os-inl.h 6 years ago
gabime 9a68bd8cc8 Fixed missing include 6 years ago
gabime 9b7812a0f2 auto create log dir 6 years ago
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)
6 years ago
gabime 9a0a0c2d8c clang-format 6 years ago
gabime fcc809f4f1 Refactored logger 6 years ago
Benjamin Sergeant 5381061d97 Fix windows compile error where std::max is overriden by a macro (#1251) 6 years ago
Bak, Jin Hyeong f8e780b9dd Fix #1239, Remove basic_string_view_t 6 years ago
gabime fe20afac17 clang-format 6 years ago
gabime 3b425affd3 Fixed missing braces around initializer warnings about std::array initializations 6 years ago
Gabi Melman 90801267ee
Merge pull request #1234 from jbeich/dragonfly
Unbreak on more BSDs
6 years ago
Jan Beich 8d57823e51 fstat64 is missing on other DragonFly, NetBSD, OpenBSD
Modern operating systems don't need to implement transitional
extensions for large file support.
6 years ago
Gabi Melman 277ccc5e18
Update log_msg_buffer-inl.h 6 years ago
Gabi Melman cff9db5044
Update log_msg_buffer-inl.h 6 years ago
Gabi Melman 216f905670
Fix log msg buffer operator= 6 years ago
Jan Beich 53b2308011 Implement _thread_id() on more Unices 6 years ago
gabime 2fed68a73b Reverted some external template declarations 6 years ago
gabime e7ab49c973 Added extern tempalate declarations 6 years ago
Gabi Melman 2331750b58
Update log_msg_buffer.h 6 years ago
Gabi Melman b3fb4c1265
Update log_msg_buffer-inl.h 6 years ago
Gabi Melman 3ad7b9b117
Update log_msg_buffer-inl.h 6 years ago
gabime 5721debdf1 split to log_msg_buffer.h ito header and mpl 6 years ago
gabime e771f4e75e Fix mingw32 compilation 6 years ago
gabime 29b3f471cf Added const vecsion to circula_q::front() 6 years ago
gabime 4985875a15 Renamed item_type => value_type in circular_q 6 years ago
gabime 4fffd3a111 Avoid un necessary move when popping circular_q 6 years ago
gabime 590749e8be Avoid un necessary move when popping circular_q 6 years ago
gabime 27cc76766c Avoid un necessary move when popping circular_q 6 years ago
gabime d52cf87d71 Avoid un necessary move when popping circular_q 6 years ago
gabime 494cc8bace Implemented daily sink rotation #661 6 years ago
gabime 03e8c0f45c Fix issue #1219 6 years ago
gabime 1857a44c7c Fix #1215 6 years ago
gabime bd9e1475e2 clang-format 6 years ago
gabime 6883267996 Added const to circular_q empty() and full() 6 years ago
gabime b88c784634 Improved circular_q move 6 years ago
gabime dae4f9fef6 split spdlog.cpp to multiple .cpp files 6 years ago
gabime feefb7e7e2 format 6 years ago
gabime ced44a15ea format 6 years ago
gabime 5c2855e1c1 wip backtracer 6 years ago
gabime 433785dc64 fix warnings and build 6 years ago
gabime 28845b96bd Update circular_q.h 6 years ago
gabime 98ec35cee1 Update backtracer.h 6 years ago
gabime f795297e15 try different apprach to backtracer object 6 years ago
gabime a1a6b7e64f Update backtracer.h 6 years ago
gabime 3ea7fb18d6 Fix potential race condidion when in logger copy ctor
Don't copy other.trace - just create a new one with same size instead
6 years ago
gabime 6ff52332a8 Remove unused member from backtracer 6 years ago
gabime 5e75b104d6 Fix backtracer 6 years ago
gabime dc893701f9 Update circular_q.h 6 years ago
gabime e6b0aaf94a typo 6 years ago
Matthias Moulin 9c5869ce5a
Fixed {fmt} include if using the non-bundled version 6 years ago
gabime fafedd2d59 Minor cleanup 6 years ago
gabime d89baf4c5b Fixed tidy warning 6 years ago
gabime f5492aed12 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime c2efd6ee58 Increased msg_buffer size to 250 6 years ago
gabime c97c025adb clang-format 6 years ago
gabime c55336e78d Better support for logger copy with backtrace 6 years ago
gabime b155347560 Added forgotten lock in backtracer 6 years ago
gabime 11e9752536 Fixed logger's copy ctor 6 years ago
gabime 7d6444491c Fixed registy::disable_backtrace() 6 years ago
gabime e1be7f3d6f Refactoring to better support backtrace 6 years ago
gabime 04a8485b17 Replaced backtace implementation 6 years ago
gabime eec6e28b19 Async logger cleanup 6 years ago
gabime f3e379cf78 Fixed async dump_backtrace 6 years ago
gabime 8280c0d64c Merge branch 'backtrace_support' of https://github.com/gabime/spdlog into backtrace_support 6 years ago
gabime a7f7984c4a backtrace support api 6 years ago
gabime dd33c16aae Replace backtrace trigger with dump_backtrace() 6 years ago
Gabi Melman e0bf0c0301
Update thread_pool.h 6 years ago
gabime 33f881ac8b clang-format 6 years ago
gabime a6d8b52686 Added enable_backtrace to spdlog_api 6 years ago
gabime 65407539bb Fixed log_msg_buffer 6 years ago
gabime 543060683b Clean log_msg_buffer 6 years ago
gabime 2848e51755 Clean log_msg_buffer 6 years ago
gabime 0284a23d0a Changed sink_it_ to accept const log_message& 6 years ago
gabime 7e728869cc comment 6 years ago
gabime a19d93e1a2 brace initialize some ctors 6 years ago
gabime 5aefa1af3d Fixed clang-tidy warnings 6 years ago
gabime f1718fb5b3 clang-format 6 years ago
gabime 6b527a50dd backtrace sink and refactoring 6 years ago
gabime 74df115fc1 Removed uneeded include 6 years ago
AMS21 c4df94a1d9
Fix Wundef in os-inl.h 6 years ago
gabime c1a524a969 Fixed clang-tidy warnings 6 years ago
gabime 23807e12e8 Fixed throw macros and includes 6 years ago
gabime b057b979fa Added missing include 6 years ago
gabime 0335e3fcc0 Print error and abort instead of throw if SPDLOG_NO_EXEPTIONS is defined 6 years ago
gabime b0a25f0183 wip - no-exceptions support 6 years ago
gabime db1babab5e Fixed some msvc code analysis warnings 6 years ago
gabime 01eb59ca9b Removed spdlog::default_level and its usage in registry 6 years ago
gabime dcd590b9de fstat64(..) -> ::fstat64(..) 6 years ago
Gabi Melman e0cf16b7e9
Fix #1168 6 years ago
AMS21 9966a6a4b7
Fix use old style cast 6 years ago
gabime 4b0267910c Refactored padding handling in formatter using templates 6 years ago
gabime 54456aee9e Refactored padding handling in formatter using templates 6 years ago
gabime 2512ac1e3c Added const qualifier to padinfo 6 years ago
PeterTh ac7821f9bf Prevent NEAR and FAR macro definitions from leaking on Windows platforms 6 years ago
gabime 5f27697198 clang-format 6 years ago
gabime db103ff340 Replaced passing time by val istead of ref in helper 6 years ago
gabime c27a4ee61f Added elapsed flag to formatter 6 years ago
Charles Milette 9e602a491b
Silence narrowing warning 6 years ago
Charles Milette f529afa625
Use stack allocated space when possible 6 years ago
Charles Milette 3bcd3cef2f
Fix deprecation warnings in filename_to_str 6 years ago
gabime 94c2810b0a Reduced max padding 128=>64 6 years ago
gabime 220608e52a clang-format 6 years ago
gabime 06fb5c7c69 Close issue #1113 6 years ago
gabime 78c833a09f clang-format 6 years ago
gabime 99e519cf0f Simplify color sinks 6 years ago
gabime db5af8ead1 clang-format 6 years ago
gabime c09dee7717 Moved source filename shortening to pattern formatter instead of macro 6 years ago
gabime 33a42202c7 Replace string pointer with string_view in log_msg 6 years ago
gabime c1b39eb2ce Fix circular include 6 years ago
gabime bcfa9241b8 Updated copyright headers 6 years ago
gabime eea9d6136f Moved default sync factory to seperate file to avoid cyclic includes 6 years ago
gabime c35f33e61a Fixed clang warning about size_t indexing 6 years ago
gabime 38f6b5ea71 Keep clang-tidy happy 6 years ago
gabime c000a6164c Removed unused member from log_msg 6 years ago
gabime 9329f8d3cd Merge v1.x 6 years ago
gabime 884c23a9c9 Merge v1.x 6 years ago
gabime ce637440bb wip static-lib 6 years ago
gabime 61e4597488 Removed include of fmt_helper from thrad_pool.h 6 years ago
gabime 6bcb422c80 clang format and SPLDOG_HEADER_ONLY macro 6 years ago
gabime 46ef71e3ec Normalized copyright message 6 years ago
gabime 9564eb2edb Moved cpp files to inl.h 6 years ago
Gabi Melman 14381fe8d0
Update os.h 6 years ago
gabime 1ac6c9f9c2 clang-format static-lib 6 years ago
gabime 5d0eb6dda5 wip static-lib 6 years ago
gabime 69fcaf14e5 wip static-lib 6 years ago
gabime 2de924a187 clang-format 6 years ago
gabime c1c2ff2d07 wip 6 years ago
gabime ff89f1476d Restored error_handler as std::function 6 years ago
gabime c1c6e6265c Fixed header only build 6 years ago
gabime 215b6aea95 file_helper.cpp and filename_t fix 6 years ago
gabime 4dd1a24d0b wip static lib 6 years ago
gabime c69c49047b wip static lib 6 years ago
gabime 2aceb13f3e fix support for utf8 logging under win32 6 years ago
gabime 17f9cdd401 static lib wip 6 years ago
gabime 156b856a80 static lib wip 6 years ago
gabime e2e3df9013 static lib wip 6 years ago
gabime ef8773a89b Moved logger_impl back into logger.h 6 years ago
DanielChabrowski a6229d9e87 Remove pointless log with enable_if 7 years ago
scribam 1798a1fa12
Update log_msg.h
`SPDLOG_NO_THREAD_ID` should only affect thread retrieval.
7 years ago
possiblyhuman 32420b77c8 Reduced amount of macros used.
Removed SPDLOG_SOURCE_MACROS_ON and SPDLOG_FUNCTION_SUFFIX.
7 years ago
possiblyhuman 2124b7bf64 Allow filename/line number at all levels. Add function name %! support. 7 years ago
Ben Ridder fb702f989f Fix typo in file_helper.h
* "extenstion" -> "extension"
7 years ago
gabime 452ba76507 Fixed conversion warnings 7 years ago
Jerome Meyer ce8cf1e152 Fix typos 7 years ago
David P. Sicilia 63a475d88c Do not attempt to default operator= when it is implicitly deleted 7 years ago
Adi Lester 247c4e55e7
Update os.h 7 years ago
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
7 years ago
Gabi Melman b492642282
Update fmt_helper.h 7 years ago
gabime 4ba19821ce Fixed compilation for vs2013 7 years ago
gabime 92921f767e clang-format 7 years ago
gabime 0ce670e45a Store level names as string_views 7 years ago
gabime 2671b48a6c Minor performance fix in full formatter 7 years ago
gabime 382478259f Fix compilation for msvc 2015 7 years ago
gabime e3c333be47 pattern_formatter - padding_info small refactor 7 years ago
gabime a16ff07a06 Show source location if present in default formatter 7 years ago
gabime 3218caf34a Added some comments 7 years ago
gabime dc13700094 Fixed source location and make SPDLOG_TRACE: that only one that inject source location info. 7 years ago
Gabi Melman 1293af093c
call flush_() instead of flush() from looger::sink_it_() 7 years ago
gabime 521b0733d4 Support for source location in async loggers 7 years ago
gabime a31719b546 clang-format 7 years ago
gabime f2305fe5bf Support for source file/line logging 7 years ago
gabime 50648553cf clang-format 7 years ago
gabime 70d03fd9c3 Minor optimization 7 years ago
gabime fb1a3a3a12 Micro optimized some formatter flags 7 years ago
Daniel Chabrowski e751461ff1 Fix template error 7 years ago
Daniel Chabrowski 6232ec78f7 Change count_digits to depend on template param, not size_t 7 years ago
Daniel Chabrowski f09d0f2301 Add helper for count_digits 7 years ago
Daniel Chabrowski 14a071c478 Fix osx build 7 years ago
gabime 7068c45115 Fixed issue #908 7 years ago
gabime 552416bda4 fmt_helper cleanup 7 years ago
gabime 8a0fc92f20 Replaced SPDLOG_DISABLE_TID_CACHING with SPDLOG_NO_TLS 7 years ago
gabime 4a34cd0662 Optimized nano seconds formatting 7 years ago
gabime 314991ac60 Fixed pattern formatter constructor bug 7 years ago
gabime c5069135d7 Improved compile time level support 7 years ago
gabime 34c60e5486 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 7 years ago
gabime 526f21ae7f Fixed #902 7 years ago
gabime 0e77c3391b New compile time API using SPDLOG_ACTIVE_LEVEL 7 years ago
Gabi Melman f1e79bde2e
Update pattern_formatter.h 7 years ago
gabime 7b6849578b Fixed some clang-tidy warnings 7 years ago
gabime 6fedffe6d6 Moved the SPDLOG_CATCH_AND_HANDLE to logger_impl.h 7 years ago
gabime d54e302a28 clang-format 7 years ago
gabime d99179f822 Small refactoring to registry class 7 years ago
gabime 65cff673b8 Merge branch 'v1.x' of https://github.com/gabime/spdlog into v1.x 7 years ago
gabime dc166cad92 Added default pattern support for pattern_formatter to avoid parsing pattern when using default pattern 7 years ago
gabime ba4ed0eb7f micro optimize scoped_padder 7 years ago
gabime 3cdf2b7f04 micro optimize scoped_padder 7 years ago
Pablo Arias a446f187c1 Fixed deadlock by recursive mutex 7 years ago
gabime 3ff541cf77 Optimized scoped_pad 7 years ago
Pablo Arias 10895796b2 Added mutexes to protect logger initialization and toggling automatic registration 7 years ago
Pablo Arias fbc58ebef8 * using API call instead of macro for toggling automatic registration
* added unit test for disabling automatic registration
7 years ago
gabime 5c54414be7 Padding support in pattern formatter 7 years ago
Pablo Arias f95b189fe3 Added a global option in tweakme.h that disabled global registration of
loggers. fixes #712
7 years ago
Gabi Melman 1aace95c8d
Update periodic_worker.h 7 years ago
rwen2012 794a636dd3 change the log_msg&& to log_msg& 7 years ago