18 static constexpr
unsigned int MAX_LOG_STR_LENGTH{256};
19 static constexpr
unsigned int MAX_LOG_BUFFER_LENGTH{1024};
20 static constexpr
unsigned int MAX_PIPE_BUFFER_LENGTH{1048576};
22 Module(
const std::string& folder, FILE* stream = stdout);
28 static bool readLine(
const char* buffer,
size_t& buffer_offset,
size_t buffer_max_len,
29 char* line,
size_t& line_offset,
size_t max_line_len,
bool& ignore);
33 static FILE* createNewFile(
const std::string& path);
36 uint64_t dt_micro_s)
override;
38 bool initPhase1_()
override;
40 bool initPhase2_()
override;
42 bool startOp_()
override;
44 bool stopOp_()
override;
50 std::array<char, MAX_LOG_STR_LENGTH> log_str_{};
51 std::array<char, MAX_LOG_STR_LENGTH> log_marker_{};
52 std::array<char, MAX_LOG_BUFFER_LENGTH> buffer_str_{};
53 size_t buffer_offset_{};
55 size_t line_offset_{};
60 bool ignore_control_char_{};