Class FileAppender

Inheritance Relationships

Base Type

Class Documentation

class FileAppender : public gpa::logger::StreamAppender

Implementation of StreamAppender that directs log output to a file on disk storage.

Public Functions

FileAppender(TCHAR const *logFilePathname)

FileAppender constructor.

Parameters

logFilePathname -- Full pathname to log file. Path will be created if it does not already exist, including intermediate path elements. Path can contain a single instance each of the following wildcards: #PROC - replaced with the name of the process (spaces in the name replaced by dashes)

~FileAppender()
bool IsOpen() const

Determine if the underlying file is currently open.

Returns

True if underlying file is open and writable, false otherwise.

Protected Functions

virtual std::ostream *GetStream() override