|
Apache Log4cxx
Version 2.0.0
|
OutputStream implemented on top of APR file IO. More...
#include <fileoutputstream.h>
Public Member Functions | |
| FileOutputStream (const LogString &filename, bool append=false, bool lazyOpen=false) | |
Open filename unless lazyOpen is true, in which case the file is opened on first write (or when getFilePtr is called) and an existing file is truncated immediately if append is false. | |
| virtual | ~FileOutputStream () |
| void | close () override |
| void | flush () override |
| void | write (ByteBuffer &buf) override |
| apr_file_t * | getFilePtr () const |
| void | close (Pool &p) |
| void | flush (Pool &p) |
| void | write (ByteBuffer &buf, Pool &p) |
| Public Member Functions inherited from log4cxx::helpers::OutputStream | |
| void | close (Pool &p) |
| void | flush (Pool &p) |
| void | write (ByteBuffer &buf, Pool &p) |
| 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::helpers::OutputStream | |
| OutputStream () | |
| virtual | ~OutputStream () |
OutputStream implemented on top of APR file IO.
This class assumes a single active thread: the file is opened lazily without synchronization. The guarantee is provided by the mutex held in AppenderSkeleton::doAppend.
| log4cxx::helpers::FileOutputStream::FileOutputStream | ( | const LogString & | filename, |
| bool | append = false, | ||
| bool | lazyOpen = false ) |
Open filename unless lazyOpen is true, in which case the file is opened on first write (or when getFilePtr is called) and an existing file is truncated immediately if append is false.
|
virtual |
|
overridevirtual |
Implements log4cxx::helpers::OutputStream.
| void log4cxx::helpers::OutputStream::close | ( | Pool & | p | ) |
|
overridevirtual |
Implements log4cxx::helpers::OutputStream.
| void log4cxx::helpers::OutputStream::flush | ( | Pool & | p | ) |
| apr_file_t * log4cxx::helpers::FileOutputStream::getFilePtr | ( | ) | const |
|
overridevirtual |
Implements log4cxx::helpers::OutputStream.
| void log4cxx::helpers::OutputStream::write | ( | ByteBuffer & | buf, |
| Pool & | p ) |