gradle-logging-extensions
Download from MavenCentral
dependencies {
implementation("com.javiersc.gradle:gradle-logging-extensions:$version")
}
Content copied to clipboard
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" }
Content copied to clipboard
Any *Colored
function has a default color parameter which can be changed:
project.logger.lifecycleColored(color = AnsiColor.Foreground.Yellow) { "Some message" }
Content copied to clipboard