Main Page   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   File Members  

log4cpp::FileAppender Class Reference

#include <FileAppender.hh>

Inheritance diagram for log4cpp::FileAppender:

Inheritance graph
[legend]
Collaboration diagram for log4cpp::FileAppender:

Collaboration graph
[legend]
List of all members.

Public Methods

 FileAppender (const std::string &name, const std::string &fileName)
 FileAppender (const std::string &name, int fd)
virtual ~FileAppender ()
virtual bool reopen ()
 Reopens the output destination of this Appender, e.g. More...

virtual void close ()
 Release any resources allocated within the appender such as file handles, network connections, etc. More...


Protected Methods

virtual void _append (const LoggingEvent &event)
 Log in Appender specific way. More...


Protected Attributes

const std::string _fileName
int _fd

Constructor & Destructor Documentation

log4cpp::FileAppender::FileAppender ( const std::string & name,
const std::string & fileName )
 

log4cpp::FileAppender::FileAppender ( const std::string & name,
int fd )
 

log4cpp::FileAppender::~FileAppender ( ) [virtual]
 


Member Function Documentation

void log4cpp::FileAppender::_append ( const LoggingEvent & event ) [protected, virtual]
 

Log in Appender specific way.

Subclasses of Appender should implement this method to perform actual logging.

Parameters:
event   The LoggingEvent to log.

Reimplemented from log4cpp::AppenderSkeleton.

void log4cpp::FileAppender::close ( ) [virtual]
 

Release any resources allocated within the appender such as file handles, network connections, etc.

Reimplemented from log4cpp::AppenderSkeleton.

bool log4cpp::FileAppender::reopen ( ) [virtual]
 

Reopens the output destination of this Appender, e.g.

the logfile or TCP socket.

Returns:
false if an error occured during reopening, true otherwise.

Reimplemented from log4cpp::AppenderSkeleton.


Member Data Documentation

int log4cpp::FileAppender::_fd [protected]
 

const std::string log4cpp::FileAppender::_fileName [protected]
 


The documentation for this class was generated from the following files:
Generated at Mon Jan 28 01:40:37 2002 for log4cpp by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001