|
Apache Log4cxx
Version 1.8.0
|
#include <gzcompressaction.h>
Public Member Functions | |
| GZCompressAction (const File &source, const File &destination, bool deleteSource) | |
| Constructor. | |
| ~GZCompressAction () | |
| bool | execute (helpers::Pool &p) const override |
| Compress the file. | |
| void | setThrowIOExceptionOnForkFailure (bool throwIO) |
| Set to true to throw an IOException on a fork failure. | |
| bool | execute () const |
| Perform the action. | |
| Public Member Functions inherited from log4cxx::rolling::Action | |
| bool | execute () const |
| Perform the action. | |
| void | run () |
| void | close () |
| bool | isComplete () const |
| Is action is complete? | |
| LogString | getName () const |
| void | reportException (const std::exception &) |
| void | run (helpers::Pool &pool) |
| Public Member Functions inherited from log4cxx::helpers::Object | |
| virtual | ~Object () |
| virtual const helpers::Class & | getClass () const =0 |
| virtual bool | instanceof (const Class &clazz) const =0 |
| virtual const void * | cast (const Class &clazz) const =0 |
Additional Inherited Members | |
| Protected Member Functions inherited from log4cxx::rolling::Action | |
| Action () | |
| Constructor. | |
| Action (LOG4CXX_PRIVATE_PTR(ActionPrivate) priv) | |
| virtual | ~Action () |
| log4cxx::rolling::GZCompressAction::GZCompressAction | ( | const File & | source, |
| const File & | destination, | ||
| bool | deleteSource ) |
Constructor.
| log4cxx::rolling::GZCompressAction::~GZCompressAction | ( | ) |
| bool log4cxx::rolling::Action::execute | ( | ) | const |
Perform the action.
|
overridevirtual |
Compress the file.
Implements log4cxx::rolling::Action.
| void log4cxx::rolling::GZCompressAction::setThrowIOExceptionOnForkFailure | ( | bool | throwIO | ) |
Set to true to throw an IOException on a fork failure.
By default, this is true. When an IOException is thrown, this will automatically cause the error handler to be called(which is the recommended way of handling this problem). By setting this to false, the GZCompressAction effectively turns into a FileRenameAction if any errors are encountered.
| throwIO |