How to log finer levels in tests

Hi, I just don’t know how to achieve this, and don’t find anything in docs. It’s very simple:

I have this basic build.gradle:

apply plugin: 'java'
apply plugin: 'application'

mainClassName = 'gradleproject1.Main'

dependencies {
    testImplementation 'org.junit.jupiter:junit-jupiter-api:5.4.1'
    testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine:5.4.1'
}

test {
    useJUnitPlatform()
    testLogging.showStandardStreams = true
    outputs.upToDateWhen { false }
}

repositories {
    mavenLocal()
    mavenCentral()
}

And this very simple test class:

public class MainTest {
    @Test
    public void method() throws Exception {
        Logger LOGGER = Logger.getLogger(MainTest.class.getName());
        LOGGER.setLevel(Level.FINEST);
        LOGGER.log(Level.INFO, "THIS IS INFO");
        LOGGER.log(Level.WARNING, "THIS IS WARNING");
        LOGGER.log(Level.SEVERE, "THIS IS SEVERE");
        LOGGER.log(Level.FINE, "THIS IS FINE");
        LOGGER.log(Level.FINER, "THIS IS FINER");
        LOGGER.log(Level.FINEST, "THIS IS FINEST");
    }   
}

And I get this console output when gradle test:

gradleproject1.MainTest > method() STANDARD_ERROR
    oct. 17, 2019 9:46:40 A. M. gradleproject1.MainTest method
    INFORMACIÓN: THIS IS INFO
    oct. 17, 2019 9:46:40 A. M. gradleproject1.MainTest method
    ADVERTENCIA: THIS IS WARNING
    oct. 17, 2019 9:46:40 A. M. gradleproject1.MainTest method
    GRAVE: THIS IS SEVERE

I need to see the other levels that are not displayed.

Well, I found a solution here: https://stackoverflow.com/questions/26635671/gradle-logging-output-levels

In summary, adding the next lines solves the issue:

Handler consoleHandler = new ConsoleHandler();
consoleHandler.setLevel(Level.ALL);
LOGGER.addHandler(consoleHandler);
LOGGER.setUseParentHandlers(false);