How do I silence or turn down log messages?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

How do I silence or turn down log messages?

Ethan Larson
I'm using the Maven groovy eclipse plugin to cross-compile a mixed Java/Groovy project.  I installed the plugin according to the documentation and it's working as advertised (thanks!): build runs, tests pass, etc. The problem is I am compiling a rather large project (almost 4000 classes), and I get a ridiculous amount of logging output: one line for each class, plus a bunch of extra lines when it gets in to the groovy source files.

Is there a way to configure this?  I really don't want 5k - 10k lines of output clogging up my build logs.

I'm fairly certain the logging is coming from the groovy-eclipse-compiler. When I disable it, I get no logging, but of course my build doesn't work :)

Any ideas?

Thanks,
Ethan
Reply | Threaded
Open this post in threaded view
|

Re: How do I silence or turn down log messages?

Andrew Eisenberg
Can you give me a sample of what you are seeing?

On Wed, Jun 27, 2012 at 11:10 AM, paradoxbomb <[hidden email]> wrote:

> I'm using the Maven groovy eclipse plugin to cross-compile a mixed
> Java/Groovy project.  I installed the plugin according to the documentation
> and it's working as advertised (thanks!): build runs, tests pass, etc. The
> problem is I am compiling a rather large project (almost 4000 classes), and
> I get a ridiculous amount of logging output: one line for each class, plus a
> bunch of extra lines when it gets in to the groovy source files.
>
> Is there a way to configure this?  I really don't want 5k - 10k lines of
> output clogging up my build logs.
>
> I'm fairly certain the logging is coming from the groovy-eclipse-compiler.
> When I disable it, I get no logging, but of course my build doesn't work :)
>
> Any ideas?
>
> Thanks,
> Ethan

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: How do I silence or turn down log messages?

Ethan Larson
Sure.  Lots of parsing lines like these (one for each Java file):

[parsing    C:\path\to\project\src\main\java\com\project\Class1.java - #3673/3970]
[parsing    C:\path\to\project\src\main\java\com\project\AnotherClass.java - #3674/3970]
[parsing    C:\path\to\project\src\main\java\com\project\YetOneMoreClass.java - #3675/3970]

Then when it gets to the Groovy classes:

[analyzing  C:\path\to\project\src\main\groovy\com\project\SomeImporterClass.groovy - #3876/3970]
[completed  C:\path\to\project\src\main\groovy\com\project\ADifferentGroovyClass.groovy - #3864/3970]
[writing    com\project\GroovyClass3.class - #5698]
[writing    com\project\GroovyClass3$_generate_closure1.class - #5699]
[completed  C:\path\to\project\src\main\groovy\com\project\GroovyClass3[INFO] 96 files left.
[INFO] 95 files left.
[INFO] 94 files left.
[INFO] 93 files left.

The [INFO] lines are jumbled with the [completed and [writing lines sometimes (as above).

At the very end:

[3970 units compiled]
[6449 .class files generated]

On Wed, Jun 27, 2012 at 11:34 AM, Andrew Eisenberg <[hidden email]> wrote:
Can you give me a sample of what you are seeing?

On Wed, Jun 27, 2012 at 11:10 AM, paradoxbomb <[hidden email]> wrote:
> I'm using the Maven groovy eclipse plugin to cross-compile a mixed
> Java/Groovy project.  I installed the plugin according to the documentation
> and it's working as advertised (thanks!): build runs, tests pass, etc. The
> problem is I am compiling a rather large project (almost 4000 classes), and
> I get a ridiculous amount of logging output: one line for each class, plus a
> bunch of extra lines when it gets in to the groovy source files.
>
> Is there a way to configure this?  I really don't want 5k - 10k lines of
> output clogging up my build logs.
>
> I'm fairly certain the logging is coming from the groovy-eclipse-compiler.
> When I disable it, I get no logging, but of course my build doesn't work :)
>
> Any ideas?
>
> Thanks,
> Ethan

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

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: How do I silence or turn down log messages?

Andrew Eisenberg
Do you have the verbose flag switched on?  These lines:

[INFO] 95 files left.
[INFO] 94 files left.
[INFO] 93 files left.

Will only be printed out if verbose == true.  I think the other
'parsing' lines are only if verbose as well.

On Wed, Jun 27, 2012 at 11:48 AM, paradoxbomb <[hidden email]> wrote:

> Sure.  Lots of parsing lines like these (one for each Java file):
>
> [parsing    C:\path\to\project\src\main\java\com\project\Class1.java -
> #3673/3970]
> [parsing    C:\path\to\project\src\main\java\com\project\AnotherClass.java -
> #3674/3970]
> [parsing
>  C:\path\to\project\src\main\java\com\project\YetOneMoreClass.java -
> #3675/3970]
>
> Then when it gets to the Groovy classes:
>
> [analyzing
>  C:\path\to\project\src\main\groovy\com\project\SomeImporterClass.groovy -
> #3876/3970]
> [completed
>  C:\path\to\project\src\main\groovy\com\project\ADifferentGroovyClass.groovy
> - #3864/3970]
> [writing    com\project\GroovyClass3.class - #5698]
> [writing    com\project\GroovyClass3$_generate_closure1.class - #5699]
> [completed
>  C:\path\to\project\src\main\groovy\com\project\GroovyClass3[INFO] 96 files
> left.
> [INFO] 95 files left.
> [INFO] 94 files left.
> [INFO] 93 files left.
>
> The [INFO] lines are jumbled with the [completed and [writing lines
> sometimes (as above).
>
> At the very end:
>
> [3970 units compiled]
> [6449 .class files generated]
>
> On Wed, Jun 27, 2012 at 11:34 AM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Can you give me a sample of what you are seeing?
>>
>> On Wed, Jun 27, 2012 at 11:10 AM, paradoxbomb <[hidden email]>
>> wrote:
>> > I'm using the Maven groovy eclipse plugin to cross-compile a mixed
>> > Java/Groovy project.  I installed the plugin according to the
>> > documentation
>> > and it's working as advertised (thanks!): build runs, tests pass, etc.
>> > The
>> > problem is I am compiling a rather large project (almost 4000 classes),
>> > and
>> > I get a ridiculous amount of logging output: one line for each class,
>> > plus a
>> > bunch of extra lines when it gets in to the groovy source files.
>> >
>> > Is there a way to configure this?  I really don't want 5k - 10k lines of
>> > output clogging up my build logs.
>> >
>> > I'm fairly certain the logging is coming from the
>> > groovy-eclipse-compiler.
>> > When I disable it, I get no logging, but of course my build doesn't work
>> > :)
>> >
>> > Any ideas?
>> >
>> > Thanks,
>> > Ethan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>

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

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: How do I silence or turn down log messages?

Ethan Larson
Derp :p

Yes, that would be it.  I should have seen that.  Although, in my defense, verbose is configured to be on in the example I used here:


Maybe make a quick note on that page?

Thanks for the help!

On Wed, Jun 27, 2012 at 12:41 PM, Andrew Eisenberg <[hidden email]> wrote:
Do you have the verbose flag switched on?  These lines:

[INFO] 95 files left.
[INFO] 94 files left.
[INFO] 93 files left.

Will only be printed out if verbose == true.  I think the other
'parsing' lines are only if verbose as well.

On Wed, Jun 27, 2012 at 11:48 AM, paradoxbomb <[hidden email]> wrote:
> Sure.  Lots of parsing lines like these (one for each Java file):
>
> [parsing    C:\path\to\project\src\main\java\com\project\Class1.java -
> #3673/3970]
> [parsing    C:\path\to\project\src\main\java\com\project\AnotherClass.java -
> #3674/3970]
> [parsing
>  C:\path\to\project\src\main\java\com\project\YetOneMoreClass.java -
> #3675/3970]
>
> Then when it gets to the Groovy classes:
>
> [analyzing
>  C:\path\to\project\src\main\groovy\com\project\SomeImporterClass.groovy -
> #3876/3970]
> [completed
>  C:\path\to\project\src\main\groovy\com\project\ADifferentGroovyClass.groovy
> - #3864/3970]
> [writing    com\project\GroovyClass3.class - #5698]
> [writing    com\project\GroovyClass3$_generate_closure1.class - #5699]
> [completed
>  C:\path\to\project\src\main\groovy\com\project\GroovyClass3[INFO] 96 files
> left.
> [INFO] 95 files left.
> [INFO] 94 files left.
> [INFO] 93 files left.
>
> The [INFO] lines are jumbled with the [completed and [writing lines
> sometimes (as above).
>
> At the very end:
>
> [3970 units compiled]
> [6449 .class files generated]
>
> On Wed, Jun 27, 2012 at 11:34 AM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Can you give me a sample of what you are seeing?
>>
>> On Wed, Jun 27, 2012 at 11:10 AM, paradoxbomb <[hidden email]>
>> wrote:
>> > I'm using the Maven groovy eclipse plugin to cross-compile a mixed
>> > Java/Groovy project.  I installed the plugin according to the
>> > documentation
>> > and it's working as advertised (thanks!): build runs, tests pass, etc.
>> > The
>> > problem is I am compiling a rather large project (almost 4000 classes),
>> > and
>> > I get a ridiculous amount of logging output: one line for each class,
>> > plus a
>> > bunch of extra lines when it gets in to the groovy source files.
>> >
>> > Is there a way to configure this?  I really don't want 5k - 10k lines of
>> > output clogging up my build logs.
>> >
>> > I'm fairly certain the logging is coming from the
>> > groovy-eclipse-compiler.
>> > When I disable it, I get no logging, but of course my build doesn't work
>> > :)
>> >
>> > Any ideas?
>> >
>> > Thanks,
>> > Ethan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>

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

   http://xircles.codehaus.org/manage_email



Reply | Threaded
Open this post in threaded view
|

Re: How do I silence or turn down log messages?

Andrew Eisenberg
Sure.  I'll make a not of it.  Glad it was an easy fix.

On Wed, Jun 27, 2012 at 2:05 PM, paradoxbomb <[hidden email]> wrote:

> Derp :p
>
> Yes, that would be it.  I should have seen that.  Although, in my defense,
> verbose is configured to be on in the example I used here:
>
> http://docs.codehaus.org/display/GROOVY/Groovy-Eclipse+compiler+plugin+for+Maven
>
> Maybe make a quick note on that page?
>
> Thanks for the help!
>
>
> On Wed, Jun 27, 2012 at 12:41 PM, Andrew Eisenberg <[hidden email]>
> wrote:
>>
>> Do you have the verbose flag switched on?  These lines:
>>
>> [INFO] 95 files left.
>> [INFO] 94 files left.
>> [INFO] 93 files left.
>>
>> Will only be printed out if verbose == true.  I think the other
>> 'parsing' lines are only if verbose as well.
>>
>> On Wed, Jun 27, 2012 at 11:48 AM, paradoxbomb <[hidden email]>
>> wrote:
>> > Sure.  Lots of parsing lines like these (one for each Java file):
>> >
>> > [parsing    C:\path\to\project\src\main\java\com\project\Class1.java -
>> > #3673/3970]
>> > [parsing
>> >  C:\path\to\project\src\main\java\com\project\AnotherClass.java -
>> > #3674/3970]
>> > [parsing
>> >  C:\path\to\project\src\main\java\com\project\YetOneMoreClass.java -
>> > #3675/3970]
>> >
>> > Then when it gets to the Groovy classes:
>> >
>> > [analyzing
>> >  C:\path\to\project\src\main\groovy\com\project\SomeImporterClass.groovy
>> > -
>> > #3876/3970]
>> > [completed
>> >
>> >  C:\path\to\project\src\main\groovy\com\project\ADifferentGroovyClass.groovy
>> > - #3864/3970]
>> > [writing    com\project\GroovyClass3.class - #5698]
>> > [writing    com\project\GroovyClass3$_generate_closure1.class - #5699]
>> > [completed
>> >  C:\path\to\project\src\main\groovy\com\project\GroovyClass3[INFO] 96
>> > files
>> > left.
>> > [INFO] 95 files left.
>> > [INFO] 94 files left.
>> > [INFO] 93 files left.
>> >
>> > The [INFO] lines are jumbled with the [completed and [writing lines
>> > sometimes (as above).
>> >
>> > At the very end:
>> >
>> > [3970 units compiled]
>> > [6449 .class files generated]
>> >
>> > On Wed, Jun 27, 2012 at 11:34 AM, Andrew Eisenberg <[hidden email]>
>> > wrote:
>> >>
>> >> Can you give me a sample of what you are seeing?
>> >>
>> >> On Wed, Jun 27, 2012 at 11:10 AM, paradoxbomb
>> >> <[hidden email]>
>> >> wrote:
>> >> > I'm using the Maven groovy eclipse plugin to cross-compile a mixed
>> >> > Java/Groovy project.  I installed the plugin according to the
>> >> > documentation
>> >> > and it's working as advertised (thanks!): build runs, tests pass,
>> >> > etc.
>> >> > The
>> >> > problem is I am compiling a rather large project (almost 4000
>> >> > classes),
>> >> > and
>> >> > I get a ridiculous amount of logging output: one line for each class,
>> >> > plus a
>> >> > bunch of extra lines when it gets in to the groovy source files.
>> >> >
>> >> > Is there a way to configure this?  I really don't want 5k - 10k lines
>> >> > of
>> >> > output clogging up my build logs.
>> >> >
>> >> > I'm fairly certain the logging is coming from the
>> >> > groovy-eclipse-compiler.
>> >> > When I disable it, I get no logging, but of course my build doesn't
>> >> > work
>> >> > :)
>> >> >
>> >> > Any ideas?
>> >> >
>> >> > Thanks,
>> >> > Ethan
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe from this list, please visit:
>> >>
>> >>    http://xircles.codehaus.org/manage_email
>> >>
>> >>
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>    http://xircles.codehaus.org/manage_email
>>
>>
>

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

    http://xircles.codehaus.org/manage_email