GRADLE-2050: Added AST transformation and unit tests for Gradle logger.

An implementation of a Gradle logger AST transformation for [GRADLE-2050](http://issues.gradle.org/browse/GRADLE-2050) including unit tests similar to Groovy's logger AST transformations.