Skip to content

Latest commit

 

History

History
36 lines (21 loc) · 1.78 KB

improved-logging.md

File metadata and controls

36 lines (21 loc) · 1.78 KB

What is this?

The spec is about improving the general logging functionally in Gradle.

Why?

  • Many User/Customer/Traning attendees asked for more fine grained logging functionality like known from well known logging frameworks like log4j / logback, ...
  • It's hard to trace specific logging messages as we currently just support global log levels and not fine grained (e.g. package scoped) log levels
  • Adding custom logging appender is not supported

Related Issues in the Gradle issue tracker

Use Cases

  • As a Gradle User I want to configure the gradle different log levels for core and my plugin code
  • As a Gradle User I want to redirect specific log messages (e.g. to a file)
  • My Gradle Build should be integrated with the logging infrastructure I want to configure
  • As a Gradle User I want to set different logging configurations for different environments (e.g. on CI Server, on Dev box)

Stories

Allow pluging in custom logging framework

The current Gradle logging infrastructure is based on slf4j which is hidden from the user. Allow pluging in a custom logging configuration + logging framework using the slf4j mechanism (adding slf4j adapter to classpath) seems the straight forward solution. Furthermore people are used to that mechanism.

##Implementation Plan

TODO look into the current gradle logging for coming up with a detailed plan)