2025-01-13 19:59:39 +10:00
|
|
|
#include "my_time.h"
|
|
|
|
|
2025-01-10 11:17:15 +10:00
|
|
|
#include <string>
|
|
|
|
#include <unistd.h>
|
|
|
|
#include <fcntl.h>
|
2025-01-13 19:59:39 +10:00
|
|
|
|
2025-01-10 14:44:36 +10:00
|
|
|
|
2025-01-10 11:17:15 +10:00
|
|
|
|
|
|
|
class LogWriter {
|
|
|
|
public:
|
2025-01-10 16:59:44 +00:00
|
|
|
static void log_start_line();
|
|
|
|
static void log_counter(long long int counter);
|
|
|
|
static void log_copy_start(std::string copy_name);
|
|
|
|
static void log_copy_finish(std::string copy_name);
|
|
|
|
static void log_copy_error(std::string copy_name);
|
2025-01-10 11:17:15 +10:00
|
|
|
|
|
|
|
private:
|
|
|
|
static int write_log(const std::string& log_line);
|
2025-01-10 14:44:36 +10:00
|
|
|
|
2025-01-10 11:17:15 +10:00
|
|
|
};
|