Use bfs::path for logger path.

This commit is contained in:
Chunting Gu
2019-08-07 13:45:56 +08:00
parent b16ba928d4
commit effe302faa
3 changed files with 27 additions and 23 deletions
+3 -1
View File
@@ -9,6 +9,8 @@
#include <cstring> // for strrchr()
#include <string>
#include "boost/filesystem/path.hpp"
// Log levels.
// VERB is similar to DEBUG commonly used by other projects.
// USER is for the users who want to log their own logs but don't want any
@@ -42,7 +44,7 @@ const int LOG_FILE_OVERWRITE = LOG_FILE | LOG_OVERWRITE;
// Initialize logger.
// If |dir| is empty, log file will be generated in current directory.
void LogInit(const std::string& dir, int modes);
void LogInit(const boost::filesystem::path& dir, int modes);
void Log(int level, const char* file, int line, const char* format, ...);