a834e6a10c433d20934de01c2c4cfe38e386968a
If one program opens file(in our case log file) and this file is moved or removed by other program, the first program still works with opened file descriptor. If we use WatchedFileHandler it allows to recreate file only after first emitting of WatchedFileHandler. It means that deleted files still consumes disk space. Class FastWatchedFileHandler is designed to observe file system. If log file is moved or removed FastWatchedFileHandler instantaneously closes old file descriptor and creates new file with specified name. Config option watch-log-file was added. If this option is set FastWatchedFileHandler handler will be used. Option watch-log-file brings effect for Linux platform only. DocImpact Closes-Bug: #1437444 Change-Id: Ie70c70ad2d8cf198a8fd72488a43fb1bd71c57be
oslo.log -- Oslo Logging Library
The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslo.log
- Source: http://git.openstack.org/cgit/openstack/oslo.log
- Bugs: http://bugs.launchpad.net/oslo.log
Description
Languages
Python
100%