trantor
Non-blocking I/O cross-platform TCP network library, using C++14
Loading...
Searching...
No Matches
trantor::AsyncFileLogger::LoggerFile Class Reference
Inheritance diagram for trantor::AsyncFileLogger::LoggerFile:
Collaboration diagram for trantor::AsyncFileLogger::LoggerFile:

Public Member Functions

 LoggerFile (const std::string &filePath, const std::string &fileBaseName, const std::string &fileExtName, bool switchOnLimitOnly=false, size_t maxFiles=0)
void writeLog (const StringPtr buf)
void open ()
void switchLog (bool openNewOne)
uint64_t getLength ()
 operator bool () const
void flush ()

Protected Member Functions

void initFilenameQueue ()
void deleteOldFiles ()

Protected Attributes

FILE * fp_ {nullptr}
Date creationDate_
std::string fileFullName_
std::string filePath_
std::string fileBaseName_
std::string fileExtName_
bool switchOnLimitOnly_ {false}
size_t maxFiles_ {0}
std::deque< std::string > filenameQueue_

Static Protected Attributes

static uint64_t fileSeq_

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