All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.test.logging.ServiceLoggingHandler Maven / Gradle / Ivy

package io.quarkus.test.logging;

import io.quarkus.test.bootstrap.Service;

public abstract class ServiceLoggingHandler extends LoggingHandler {

    private final Service service;

    public ServiceLoggingHandler(Service service) {
        this.service = service;
    }

    @Override
    protected void logInfo(String line) {
        Log.info(service, line);
    }

    @Override
    protected boolean isLogEnabled() {
        return service.getConfiguration().isTrue("log.enable");
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy