public static ProcessOutput file(String logFile, String encoding) {
FileOutputStreamProcessor file = new FileOutputStreamProcessor(logFile, encoding);
return new ProcessOutput(
new NamedOutputStreamProcessor("[mongod output]", file),
new NamedOutputStreamProcessor("[mongod error]", file),
new NamedOutputStreamProcessor("[mongod commands]", file));
}