use of io.micronaut.starter.application.OperatingSystem in project micronaut-starter by micronaut-projects.
the class Logback method apply.
@Override
public void apply(GeneratorContext generatorContext) {
OperatingSystem operatingSystem = generatorContext.getOperatingSystem();
boolean jansi = false;
if (operatingSystem != OperatingSystem.WINDOWS) {
jansi = true;
}
generatorContext.addTemplate("loggingConfig", new RockerTemplate("src/main/resources/logback.xml", logback.template(jansi)));
}
Aggregations