mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-23 07:11:55 +00:00
32 lines
585 B
Java
32 lines
585 B
Java
package io.ebeantest;
|
|
|
|
import io.ebeaninternal.api.SpiLogger;
|
|
import io.ebeaninternal.server.log.DSpiLogger;
|
|
|
|
import java.util.List;
|
|
|
|
public class LoggedSql {
|
|
|
|
private static CaptureLogger sqlLogger;
|
|
|
|
static SpiLogger register(DSpiLogger logger) {
|
|
if (sqlLogger == null) {
|
|
sqlLogger = new CaptureLogger(logger);
|
|
}
|
|
return sqlLogger;
|
|
}
|
|
|
|
public static List<String> start() {
|
|
return sqlLogger.start();
|
|
}
|
|
|
|
public static List<String> stop() {
|
|
return sqlLogger.stop();
|
|
}
|
|
|
|
public static List<String> collect() {
|
|
return sqlLogger.collect();
|
|
}
|
|
|
|
}
|