/** * The number of characters to print per line when * pretty-printing of SQL is enabled. Defaults to 60 to provide * some space for any ant-related characters on the left of a * standard 80-character display. */ public void setPrettyPrintLineLength(int length) { _prettyPrintLineLength = length; if (_formatter != null) _formatter.setLineLength(length); }
/** * The number of characters to print per line when * pretty-printing of SQL is enabled. Defaults to 60 to provide * some space for any ant-related characters on the left of a * standard 80-character display. */ public void setPrettyPrintLineLength(int length) { _prettyPrintLineLength = length; if (_formatter != null) _formatter.setLineLength(length); }
/** * The number of characters to print per line when * pretty-printing of SQL is enabled. Defaults to 60 to provide * some space for any ant-related characters on the left of a * standard 80-character display. */ public void setPrettyPrintLineLength(int length) { _prettyPrintLineLength = length; if (_formatter != null) _formatter.setLineLength(length); }
/** * The number of characters to print per line when * pretty-printing of SQL is enabled. Defaults to 60 to provide * some space for any ant-related characters on the left of a * standard 80-character display. */ public void setPrettyPrintLineLength(int length) { _prettyPrintLineLength = length; if (_formatter != null) _formatter.setLineLength(length); }
/** * 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; }