Added the ability to truncate the basic file logger.

Added the ability to truncate the basic file logger.
This commit is contained in:
Sam Brkopac
2016-08-22 13:31:43 -07:00
parent 332b7c0d7f
commit 0be736c7fc
3 changed files with 9 additions and 8 deletions

View File

@@ -71,8 +71,8 @@ void set_sync_mode();
//
// Create and register multi/single basic file logger
//
std::shared_ptr<logger> basic_logger_mt(const std::string& logger_name, const filename_t& filename,bool force_flush = false);
std::shared_ptr<logger> basic_logger_st(const std::string& logger_name, const filename_t& filename, bool force_flush = false);
std::shared_ptr<logger> basic_logger_mt(const std::string& logger_name, const filename_t& filename,bool force_flush = false, bool truncate = false);
std::shared_ptr<logger> basic_logger_st(const std::string& logger_name, const filename_t& filename, bool force_flush = false, bool truncate = false);
//
// Create and register multi/single threaded rotating file logger