io.ebeaninternal.server.persist.TrimLogSql Maven / Gradle / Ivy
package io.ebeaninternal.server.persist;
/**
* Utility to improve logging of raw SQL that contains new line characters.
*/
public final class TrimLogSql {
/**
* Replace new line chars for nicer logging of multi-line sql strings.
*/
public static String trim(String sql) {
return sql.replace("\n","\\n ");
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy