/** * Verify the LogFormatter by running it on a known file. */ @Test public void testLogFormatter() throws Exception { File snapDir = new File(testData, "invalidsnap"); File logfile = new File(new File(snapDir, "version-2"), "log.274"); String[] args = {logfile.getCanonicalFile().toString()}; LogFormatter.main(args); }
public static void main(String[] args) throws Exception { String logFile = "/var/lib/zookeeper/datalog/server1/version-2/log.3000109f9"; LogFormatter.main(new String[]{logFile}); }