CommandLine commandLine = parseArgs(args);
SecorConfig config = SecorConfig.load();
FileUtil.configure(config);
LogFilePrinter printer = new LogFilePrinter(
commandLine.hasOption("print_offsets_only"));
printer.printFile(commandLine.getOptionValue("file"));
} catch (Throwable t) {
LOG.error("Log file printer failed", t);
System.exit(1);
}
}