mirror of
https://github.com/boostorg/log.git
synced 2026-01-19 04:22:09 +00:00
boost-1.88.0
If text_file_backend is set up to append to a previously written file, and the actively written file name pattern does not include a file counter placeholder but the target file name pattern does, we used to skip incrementing the file counter in an attempt to generate the same file name as was last used, so that we open the last used file for appending. While it did result in reusing the last written file, since the counter was not incremented, the next rotation would generate the last used target file name, which would result in overwriting the last rotated file instead of adding a new file to the storage. To mitigate this, only skip incrementing the counter if the file name pattern for the actively written file actually has a counter placeholder. This way, the counter will get incremented in the case described above, and on rotation a new target file name will be generated. Fixes https://github.com/boostorg/log/issues/245.
Boost.Log, part of collection of the Boost C++ Libraries, provides tools for adding logging to libraries and applications.
Directories
- build - Boost.Log build scripts
- config - Boost.Log build configuration code and scripts
- doc - QuickBook documentation sources
- example - Boost.Log examples
- include - Interface headers of Boost.Log
- src - Compilable source code of Boost.Log
- test - Boost.Log unit tests
More information
- Documentation
- Ask questions
- Report bugs. Be sure to mention Boost version, platform and compiler you're using. A small compilable code sample to reproduce the problem is always good as well.
- Submit your patches as pull requests against develop branch. Note that by submitting patches you agree to license your modifications under the Boost Software License, Version 1.0.
- Discussions about the library are held on the Boost developers mailing list. Be sure to read the discussion policy before posting and add the
[log]tag at the beginning of the subject line.
Build status
| Branch | GitHub Actions | AppVeyor | Test Matrix | Dependencies |
|---|---|---|---|---|
master |
||||
develop |
License
Distributed under the Boost Software License, Version 1.0.
Description
Languages
C++
99%
CMake
1%
