a (FILE*, file name) pair that uses stderr FILE as the last resort More...

Collaboration diagram for DebugFile:

Public Member Functions

 DebugFile ()
 
 ~DebugFile ()
 
 DebugFile (DebugFile &&)=delete
 
void reset (FILE *newFile, const char *newName)
 switches to the new pair, absorbing FILE and duping the name More...
 
void clear ()
 go back to the initial state More...
 
FILE * file ()
 logging stream; the only method that uses stderr as the last resort More...
 

Public Attributes

char * name = nullptr
 

Private Attributes

FILE * file_ = nullptr
 opened "real" file or nil; never stderr More...
 

Friends

void ResyncDebugLog (FILE *newFile)
 a hack for low-level file descriptor manipulations in ipcCreate() More...
 

Detailed Description

Definition at line 48 of file debug.cc.

Constructor & Destructor Documentation

DebugFile::DebugFile ( )
inline

Definition at line 51 of file debug.cc.

DebugFile::~DebugFile ( )
inline

Definition at line 52 of file debug.cc.

References clear().

DebugFile::DebugFile ( DebugFile &&  )
delete

Member Function Documentation

void DebugFile::clear ( )
inline

Definition at line 59 of file debug.cc.

References reset().

Referenced by _db_rotate_log(), debugOpenLog(), StopUsingDebugLog(), and ~DebugFile().

FILE* DebugFile::file ( )
inline

Definition at line 62 of file debug.cc.

References file_.

Referenced by DebugStream().

void DebugFile::reset ( FILE *  newFile,
const char *  newName 
)

Definition at line 94 of file debug.cc.

References assert, file_, name, xfree, and xstrdup.

Referenced by clear(), and debugOpenLog().

Friends And Related Function Documentation

void ResyncDebugLog ( FILE *  newFile)
friend

Definition at line 88 of file debug.cc.

Member Data Documentation

FILE* DebugFile::file_ = nullptr
private

Definition at line 69 of file debug.cc.

Referenced by file(), reset(), and ResyncDebugLog().

char* DebugFile::name = nullptr

Definition at line 64 of file debug.cc.

Referenced by _db_rotate_log(), and reset().


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

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors