Commit Graph

41 Commits (99920ed50a1ace8ca35845403269b06540683167)

Author SHA1 Message Date
gabime 99920ed50a Removed unneeded includes 10 months ago
gabime 12c07b8e8b Fixed include 10 months ago
gabime e96ae7fd43 Removed mdc support 10 months ago
Gabi Melman 2c76e6101a
Fix #3194 - Use Sep instead of Sept for abbreviated month 11 months ago
allen_qfl 362214a349
fix/issue-3101: fix the issue where mdc ignores SPDLOG_NO_TLS (#3184)
Co-authored-by: dyf <yufeng.duan@senscape.com.cn>
12 months ago
gabime 22b0f4fc06 Clang format 1 year ago
gabime 1253a57db6 Add mdc support for default format 1 year ago
gabime cba66029e2 Update mdc 1 year ago
Massimiliano Riva d03eb40c17
Added Mapped Diagnostic Context (MDC) support (#2907)
* Added Mapped Diagnostic Context (MDC) support

* Update include statement

* Optimize string creation

* Fix includes

* Fix padding rules in mdc empty case

* Add comment to describe the use of mdc formatter
1 year ago
gabime 0a53eafe18 update clang format again 2 years ago
gabime 4b2a8219d5 reformat code 2 years ago
gabime 9d52261185 clang format 2 years ago
gabime 1a0bfc7a89 clang format 2 years ago
Simon-Janos 26f69ee9d2 Re-introduce redundant std::move at return for old GCC (before version 5) inside an ifdef for e.g. CentOS 7 3 years ago
Alexandre Pereira Nunes beefee7929
Remove redundant std::move at return (triggers -Wredundant-move in Gcc, at least) 3 years ago
Aengus.Jiang 3d7ee64661 fix error: cannot bind lvale to right reference 3 years ago
Jeeyong Um c03c925e29 Copy the value of need_localtime when cloning pattern_formatter 3 years ago
Jeeyong Um 38929f856d Allow overriding need_localtime for custom formatter 3 years ago
Adrien Bertrand 9cd9c98f59
pattern_formatter-inl: fix reorder-ctor warning
Fix `Wreorder-ctor` warning

```
spdlog/pattern_formatter-inl.h:1028:7: error: field 'custom_handlers_' will be initialized after field 'need_localtime_' [-Werror,-Wreorder-ctor]
    , custom_handlers_(std::move(custom_user_flags))
      ^
```

Move the initialization of `need_localtime_(true)` right after `pattern_time_type_` as expected.
4 years ago
Kyuheon Kim d497f494f0 Apply pattern width to one of the source information fields while missing source information 4 years ago
Gabi Melman 2382c87aa3
Update pattern_formatter-inl.h 4 years ago
doug1234 28b9adf794 Added the last few suggested changes. 4 years ago
doug1234 584d77237e Several minor improvements based on code review suggestions. 4 years ago
doug1234 d9ec02d400 Fix mistake in previous checkin. 4 years ago
doug1234 5568b16ed5 Resetting the needs time flag when setting a pattern. 4 years ago
doug1234 eab522e743 Now only getting the date if formater needs to display date related information. 4 years ago
gabime e7e8b75a4c clang-format 4 years ago
Benjamin Sergeant aa264a7fb2
Update pattern_formatter-inl.h
Comment describing the default logging pattern is missing [%s:%#], which is the abbreviated source file + the line number.

I tried to customize our own logger by copy pasting this info, and then I noticed we had lost that information.
4 years ago
Gabi Melman 609480ed78
Merge pull request #1798 from gv-me/constexpr-log-levels
add constexpr to SPDLOG_LEVEL_NAMES declaration
5 years ago
Gaurav Vaidya 53d223b45f add constexpr to SPDLOG_LEVEL_NAMES declaration
for #1791
5 years ago
Charles Milette a453bccff0
Better support for / separators on Windows, improve wchar filename coverage 5 years ago
Gabi Melman dccb766095 Fix warning about enum usage 5 years ago
gabime 934a9bb23e Fix issue #1617 5 years ago
gabime 81444265f4 clang-format 5 years ago
gabime 394f79e9d3 small refactoring 5 years ago
gabime 8bc1ca0e44 clang-format 5 years ago
gabime d38bd138cd Micro optimze pattern-formatter when padding not needed 5 years ago
gabime 5b0b8579b2 Fix #1485 by removing SPDLOG_NO_NAME option 6 years ago
gabime 0a5ada6411 clang-format 6 years ago
Gabi Melman 60a8c5f1c9 Added padding support and set_pattern to custom_flags 6 years ago
Gabi Melman 752d5685dc Moved pattern formatter from spdlog/details to spdlog/ 6 years ago