Commit Graph

15 Commits (8bc619bda9c03e66fec5c7bef803e393662152be)

Author SHA1 Message Date
Niels Dekker 8bc619bda9 Allow basic_file_sink to open a file in text mode
Added an optional `bool` parameter to the explicit `basic_file_sink`
constructor, allowing to open the file in in text mode, instead of in binary
mode.

Enables automatic conversion of '\n' characters _inside_ a message string to a
platform specific eol representation. (`\r\n` on Windows.)
3 years ago
gabime 5b03dc1796 Throw if rotating_file_sink constructor receives max_size==0 as arg 4 years ago
Charless Milette 2d77ef92b0 Avoid specializing std::formatter for std::tm (not a great idea after all) 4 years ago
Charles Milette a453bccff0
Better support for / separators on Windows, improve wchar filename coverage 5 years ago
gabime b2017f5653 Fixed multiple clang-tidy warnings 5 years ago
gabime 5370443ece clang-format 6 years ago
Mario Emmenlauer 87acec6a91 Make tests support empty SPDLOG_EOL with new helper method require_message_count() 6 years ago
gabime 9b7812a0f2 auto create log dir 6 years ago
gabime 494cc8bace Implemented daily sink rotation #661 6 years ago
gabime 2eb52cd047 Unified usage of fmt::memory_buffer across the codebase 6 years ago
gabime 6b0bf33f8e clang-format 7 years ago
Philip Miller e41b92c55a fix inadvertent rename to original test function 7 years ago
Philip Miller 3925f8fa16 streamline constructor logic
and improve test for rotate_on_open=true
7 years ago
Philip Miller 4fe98bf6e6 Merge remote-tracking branch 'origin/v1.x' into pwm1234/rotate_on_open 7 years ago
gabime 2998815166 Added missing test file 7 years ago