mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#1402 - Refactor SQL Logging internals (io.ebean.SQL) such that it is easier to capture for testing/asserts
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package io.ebeaninternal.server.logger;
|
||||
|
||||
import io.ebeaninternal.api.SpiLogger;
|
||||
import io.ebeaninternal.api.SpiLoggerFactory;
|
||||
import org.slf4j.LoggerFactory;
|
||||
|
||||
/**
|
||||
* Default SpiLoggerFactory implementation.
|
||||
*/
|
||||
public class DLoggerFactory implements SpiLoggerFactory {
|
||||
|
||||
/**
|
||||
* Just use a standard slf4j Logger.
|
||||
*/
|
||||
@Override
|
||||
public SpiLogger create(String name) {
|
||||
return new DSpiLogger(LoggerFactory.getLogger(name));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user