Apache Log4cxx  Version 1.8.0
Loading...
Searching...
No Matches
log4cxx::helpers::Writer Class Referenceabstract

Abstract class for writing to character streams. More...

#include <writer.h>

Inheritance diagram for log4cxx::helpers::Writer:
log4cxx::helpers::Object log4cxx::helpers::BufferedWriter log4cxx::helpers::OutputStreamWriter log4cxx::helpers::SystemErrWriter log4cxx::helpers::SystemOutWriter

Public Member Functions

void close ()
void flush ()
void write (const LogString &str)
virtual void close (Pool &p)=0
virtual void flush (Pool &p)=0
virtual void write (const LogString &str, Pool &p)=0
Public Member Functions inherited from log4cxx::helpers::Object
virtual ~Object ()
virtual const helpers::ClassgetClass () const =0
virtual bool instanceof (const Class &clazz) const =0
virtual const void * cast (const Class &clazz) const =0

Protected Member Functions

 Writer ()
virtual ~Writer ()

Detailed Description

Abstract class for writing to character streams.

Constructor & Destructor Documentation

◆ Writer()

log4cxx::helpers::Writer::Writer ( )
protected

◆ ~Writer()

virtual log4cxx::helpers::Writer::~Writer ( )
protectedvirtual

Member Function Documentation

◆ close() [1/2]

void log4cxx::helpers::Writer::close ( )

◆ close() [2/2]

virtual void log4cxx::helpers::Writer::close ( Pool & p)
pure virtual
Deprecated
The pool parameter is not used and will be removed in a future version. Implement this method for now, but plan to migrate to close() without a helpers::Pool parameter.

Implemented in log4cxx::helpers::BufferedWriter, log4cxx::helpers::OutputStreamWriter, log4cxx::helpers::SystemErrWriter, and log4cxx::helpers::SystemOutWriter.

◆ flush() [1/2]

void log4cxx::helpers::Writer::flush ( )

◆ flush() [2/2]

virtual void log4cxx::helpers::Writer::flush ( Pool & p)
pure virtual
Deprecated
The pool parameter is not used and will be removed in a future version. Implement this method for now, but plan to migrate to flush() without a helpers::Pool parameter.

Implemented in log4cxx::helpers::BufferedWriter, log4cxx::helpers::OutputStreamWriter, log4cxx::helpers::SystemErrWriter, and log4cxx::helpers::SystemOutWriter.

◆ write() [1/2]

void log4cxx::helpers::Writer::write ( const LogString & str)

◆ write() [2/2]

virtual void log4cxx::helpers::Writer::write ( const LogString & str,
Pool & p )
pure virtual
Deprecated
The pool parameter is not used and will be removed in a future version. Implement this method for now, but plan to migrate to write() without a helpers::Pool parameter.

Implemented in log4cxx::helpers::BufferedWriter, log4cxx::helpers::OutputStreamWriter, log4cxx::helpers::SystemErrWriter, and log4cxx::helpers::SystemOutWriter.


The documentation for this class was generated from the following file: