Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package io.dropwizard.jdbi.logging;
Logs SQL via Logback
public class LogbackLog extends FormattedLog {
    private final Logger log;
    private final Level level;
    private final String fqcn;

Logs to org.skife.jdbi.v2 logger at the debug level
    public LogbackLog() {
        this((Logger) LoggerFactory.getLogger(DBI.class.getPackage().getName()));

Use an arbitrary logger to log to at the debug level
    public LogbackLog(Logger log) {

Specify both the logger and the level to log at

log The logger to log to
level the priority to log at
    public LogbackLog(Logger logLevel level) {
        this. = log;
        this. = level;
        this. = LogbackLog.class.getName();
    protected final boolean isEnabled() {
        return .isEnabledFor();
    protected final void log(String msg) {
        .log(null, Level.toLocationAwareLoggerInteger(), msgnullnull);
New to GrepCode? Check out our FAQ X