mirror of
https://github.com/boostorg/log.git
synced 2026-02-02 21:02:19 +00:00
69ec057e7ca505a29488ed290478ac6c252d034b
Previously, text_file_backend would generate a new file name when the file name pattern contained a file counter placeholder, which prevented appending to the file. Appending was only possible when the active file name was stable across process restarts (effectively, this prohibited the file counter to be used in the active file name). This commit adds support for appending in such configuration. The file collector has been updated to return the last found file counter during filesystem scanning, and the sink backend doesn't increment it when the initial file is opened, when appending is enabled, and when the file to be opened exists and, if file collector is used, is in the target storage of the file collector. In all other cases the file counter is incremented, which leaves the behavior unchanged. Closes https://github.com/boostorg/log/issues/179.
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%
