* @param compress output file will be compressed if true
* @return trace file writer
*/
public ZorkaAsyncThread<SymbolicRecord> toFile(String path, int maxFiles, long maxSize, boolean compress) {
TraceWriter writer = new FressianTraceWriter(symbolRegistry, metricsRegistry);
FileTraceOutput output = new FileTraceOutput(writer, new File(config.formatCfg(path)), maxFiles, maxSize, compress);
output.start();
return output;
}