On Jan 7, 2009, at 11:44 PM, Allan Lewis wrote:


Having just upgraded to 0.5, I have some questions about the new logging
mechanism.

1 - I'm using SLF4J for my logging - is there any way for me to tell Gradle that I only want WARN or higher messages to be output when using the default
LIFECYCLE logging?

This is the default.

I have some INFO messages that I would like to keep as
INFOs, but I don't want to see them in the Gradle output.

You mean you don't want to see them if you start gradle with -i?

 I'm using the
SLF4J simple logger; would switching to their logback implementation make
this any easier?



2 - From a build.gradle file, how would I directly print a log statement using Gradle's logging system? There must be an easy way for me to print,
say, a LIFECYCLE message, right?

Yes. This is really missing in the user's guide. I have updated the newest version of the user's guide. See chapter 8.3:

http://gradle.org/userguide/latest/userguidech8.html#x25-420008.3

- Hans

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

   http://xircles.codehaus.org/manage_email


Reply via email to