mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
32 lines
585 B
Java
32 lines
585 B
Java
package io.ebeaninternal.api;
|
|
|
|
/**
|
|
* Logger for SQL, TXN and Summary logging.
|
|
* <p>
|
|
* In general at runtime this uses SLF4J Logger but this abstraction allows us to capture
|
|
* the logged SQL during testing such that we can assert against the executed sql if desired.
|
|
* </p>
|
|
*/
|
|
public interface SpiLogger {
|
|
|
|
/**
|
|
* Is debug logging enabled.
|
|
*/
|
|
boolean isDebug();
|
|
|
|
/**
|
|
* Is trace logging enabled.
|
|
*/
|
|
boolean isTrace();
|
|
|
|
/**
|
|
* Log a debug level message.
|
|
*/
|
|
void debug(String msg);
|
|
|
|
/**
|
|
* Log a trace level message.
|
|
*/
|
|
void trace(String msg);
|
|
}
|