24 lines
503 B
C++
24 lines
503 B
C++
#include <string>
|
|
#include <unistd.h>
|
|
#include <fcntl.h>
|
|
#include <sys/stat.h>
|
|
|
|
#include <ctime>
|
|
|
|
|
|
class LogWriter {
|
|
public:
|
|
static int log_start_line();
|
|
static int log_counter(int counter);
|
|
static int log_copy_start(int counter, std::string copy_name);
|
|
static int log_copy_finish(std::string copy_name);
|
|
static int log_copy_error(std::string copy_name);
|
|
|
|
protected:
|
|
static std::string get_current_time();
|
|
|
|
private:
|
|
static int write_log(const std::string& log_line);
|
|
|
|
};
|