34 if (extraArgs.empty())
39 char const* mode =
"a";
40 if (extraArgs.size() > 1)
45 size_t dot_pos =
_fileName.find_last_of(
".");
46 if (dot_pos != std::string::npos)
52 if (extraArgs.size() > 2)
std::string _logDir
Definition: AppenderFile.h:39
std::string _fileName
Definition: AppenderFile.h:38
arena_t NULL
Definition: jemalloc_internal.h:624
#define sLog
Definition: Log.h:154
FILE * OpenFile(std::string const &name, std::string const &mode, bool backup)
Definition: AppenderFile.cpp:98
bool _backup
Definition: AppenderFile.h:41
Definition: Appender.h:126
uint64 _maxFileSize
Definition: AppenderFile.h:42
Definition: Appender.h:58
std::string name
Definition: Appender.h:109
FILE * logfile
Definition: AppenderFile.h:37
std::string StringFormat(Format &&fmt, Args &&...args)
Default TC string format function.
Definition: StringFormat.h:28
AppenderFlags flags
Definition: Appender.h:111
Definition: Appender.h:59
Appender(uint8 _id, std::string const &name, LogLevel level=LOG_LEVEL_DISABLED, AppenderFlags flags=APPENDER_FLAGS_NONE)
Definition: Appender.cpp:40
std::atomic< uint64 > _fileSize
Definition: AppenderFile.h:43
LogLevel level
Definition: Appender.h:110
bool _dynamicName
Definition: AppenderFile.h:40