apache / logging-log4cxx

Apache Log4cxx is a C++ port of Apache Log4j
http://logging.apache.org/log4cxx
Apache License 2.0
273 stars 122 forks source link

Improve diagnostic hints when using zip/gzip to compress log files #405

Closed swebb2066 closed 3 months ago

swebb2066 commented 3 months ago

This PR provides a better diagnostic than just IO Exception: The system cannot find the file specified for all errors

The new message is (for example):

log4cxx: Failed to fork zip during log rotation; leaving log file uncompressed
log4cxx: Rollover of [MyApp.log] failed
log4cxx: zip - The system cannot find the file specified.