public static void main(String [] args) { SQLFormatter formatter = new SQLFormatter(); for (int i = 0; i < args.length; i++) { // START - ALLOW PRINT STATEMENTS System.out.println(formatter.prettyPrint(args[i])); // STOP - ALLOW PRINT STATEMENTS } } }
public static void main(String [] args) { SQLFormatter formatter = new SQLFormatter(); for (int i = 0; i < args.length; i++) { // START - ALLOW PRINT STATEMENTS System.out.println(formatter.prettyPrint(args[i])); // STOP - ALLOW PRINT STATEMENTS } } }
public static void main(String [] args) { SQLFormatter formatter = new SQLFormatter(); for (int i = 0; i < args.length; i++) { System.out.println(formatter.prettyPrint(args[i])); } } }
public static void main(String [] args) { SQLFormatter formatter = new SQLFormatter(); for (int i = 0; i < args.length; i++) { // START - ALLOW PRINT STATEMENTS System.out.println(formatter.prettyPrint(args[i])); // STOP - ALLOW PRINT STATEMENTS } } }
/** * If set to <code>true</code>, pretty-print SQL by running it * through {@link SQLFormatter#prettyPrint}. If * <code>false</code>, don't pretty-print, and output SQL logs in * a single line. Pretty-printed SQL can be easier for a human to * read, but is harder to parse with tools like grep. */ public void setPrettyPrint(boolean prettyPrint) { _prettyPrint = prettyPrint; if (_formatter == null && _prettyPrint) { _formatter = new SQLFormatter(); _formatter.setLineLength(_prettyPrintLineLength); } else if (!_prettyPrint) _formatter = null; }
/** * If set to <code>true</code>, pretty-print SQL by running it * through {@link SQLFormatter#prettyPrint}. If * <code>false</code>, don't pretty-print, and output SQL logs in * a single line. Pretty-printed SQL can be easier for a human to * read, but is harder to parse with tools like grep. */ public void setPrettyPrint(boolean prettyPrint) { _prettyPrint = prettyPrint; if (_formatter == null && _prettyPrint) { _formatter = new SQLFormatter(); _formatter.setLineLength(_prettyPrintLineLength); } else if (!_prettyPrint) _formatter = null; }
/** * If set to <code>true</code>, pretty-print SQL by running it * through {@link SQLFormatter#prettyPrint}. If * <code>false</code>, don't pretty-print, and output SQL logs in * a single line. Pretty-printed SQL can be easier for a human to * read, but is harder to parse with tools like grep. */ public void setPrettyPrint(boolean prettyPrint) { _prettyPrint = prettyPrint; if (_formatter == null && _prettyPrint) { _formatter = new SQLFormatter(); _formatter.setLineLength(_prettyPrintLineLength); } else if (!_prettyPrint) _formatter = null; }
/** * If set to <code>true</code>, pretty-print SQL by running it * through {@link SQLFormatter#prettyPrint}. If * <code>false</code>, don't pretty-print, and output SQL logs in * a single line. Pretty-printed SQL can be easier for a human to * read, but is harder to parse with tools like grep. */ public void setPrettyPrint(boolean prettyPrint) { _prettyPrint = prettyPrint; if (_formatter == null && _prettyPrint) { _formatter = new SQLFormatter(); _formatter.setLineLength(_prettyPrintLineLength); } else if (!_prettyPrint) _formatter = null; }