MCPcopy Create free account
hub / github.com/DeNA/PacketProxy / outputToFile

Method outputToFile

src/main/java/core/packetproxy/common/Logger.java:51–59  ·  view source on GitHub ↗
(String filename)

Source from the content-addressed store, hash-verified

49 }
50
51 public String outputToFile(String filename) throws Exception {
52 if (filename == null) {
53
54 filename = String.join(File.separator, this.log_dir, createFileName());
55 }
56 StringBuilder sb = loggingProcess();
57 Utils.writefile(filename, sb.toString().getBytes());
58 return filename;
59 }
60
61 /*
62 * ロギングのフォーマットを決定する部分

Callers 1

outputAllPacketsMethod · 0.95

Calls 5

createFileNameMethod · 0.95
loggingProcessMethod · 0.95
writefileMethod · 0.95
getBytesMethod · 0.65
toStringMethod · 0.45

Tested by

no test coverage detected