gradle-logging-extensions

Download from MavenCentral

dependencies {
implementation("com.javiersc.gradle:gradle-logging-extensions:$version")
}

Usage

project.logger.lifecycleColored { "Some message" }
project.logger.traceColored { "Some message" }
project.logger.debugColored { "Some message" }
project.logger.infoColored { "Some message" }
project.logger.warnColored { "Some message" }
project.logger.errorColored { "Some message" }

Any *Colored function has a default color parameter which can be changed:

project.logger.lifecycleColored(color = AnsiColor.Foreground.Yellow) { "Some message" }

Packages

Link copied to clipboard