Log message to a file (if path set)
| 126 | |
| 127 | // Log message to a file (if path set) |
| 128 | void ZmqLogger::LogToFile(std::string message) |
| 129 | { |
| 130 | // Write to log file (if opened, and force it to write to disk in case of a crash) |
| 131 | if (log_file.is_open()) |
| 132 | log_file << message << std::flush; |
| 133 | } |
| 134 | |
| 135 | void ZmqLogger::Path(std::string new_path) |
| 136 | { |