Rudiments
Public Member Functions | List of all members
filedestination Class Reference

#include <logger.h>

Inherits logdestination.

Public Member Functions

 filedestination ()
 
virtual ~filedestination ()
 
bool open (const char *filename, mode_t perms)
 
void close ()
 
- Public Member Functions inherited from object
virtual ~object ()
 

Detailed Description

The filedestination class writes log data to a file.

Constructor & Destructor Documentation

◆ filedestination()

filedestination::filedestination ( )

Creates an instance of the filedestination class.

◆ ~filedestination()

virtual filedestination::~filedestination ( )
virtual

Deletes this instance of the filedestination class.

Member Function Documentation

◆ close()

void filedestination::close ( )

Closes the file as a logging destination.

◆ open()

bool filedestination::open ( const char * filename,
mode_t perms )

Opens file "filename" as a logging destination with "perms" permissions.