Skip to content
sgilda edited this page May 4, 2015 · 7 revisions

Logging

DRAFT

This section describes how to use logging from the Java-based rules in Windup.

Textual logging

Windup uses java.util.logging. The following is a convenient way to get access to the logger.

private static final Logger LOG = Logging.get(MyClass.class);

Displaying Progress

IterationProgress

return ConfigurationBuilder.begin().addRule()
            .when(Query.find(ArchiveModel.class))
            .perform(UnzipArchiveToOutputFolder.unzip()
            .and(IterationProgress.monitoring("Unzipped archive: ", 1))
            .and(Commit.every(1))
            );
Clone this wiki locally