15 #ifndef IMPALA_SERVICE_SIMPLE_LOGGER_H
16 #define IMPALA_SERVICE_SIMPLE_LOGGER_H
18 #include <boost/thread/thread.hpp>
std::ofstream log_file_
Log files are written to this stream.
boost::mutex log_file_lock_
Protects log_file_, num_log_file_entries_ and log_file_name_.
std::string log_file_name_
Current log file name.
void GenerateLogFileName()
uint64_t num_log_file_entries_
Status AppendEntry(const std::string &entry)
std::string log_dir_
Directory to log to.
SimpleLogger(const std::string &log_dir_, const std::string &log_file_name_prefix_, uint64_t max_entries_per_file)
std::string log_file_name_prefix_
Prefix for all log files.
uint64_t max_entries_per_file_