You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Steven Bourke <sb...@gmail.com> on 2011/03/06 14:28:53 UTC

Can I turn off the logger output?

Simple really!

I'm trying to resolve a small issue by printing out an object as a program
runs. The logger is filling up the console with lots of useful meaningful
information, however just for this one issue I'd really like it not to print
anything out!

Is there a way I can turn it off?

Thanks

Re: Can I turn off the logger output?

Posted by Kate Ericson <er...@cs.colostate.edu>.
Hi,

So it's a bit of a hack, but the logger prints out to stderr - you
could try directing stderr to a file, and keep what you're printing
out on the console.

-Kate

On Sun, Mar 6, 2011 at 6:28 AM, Steven Bourke <sb...@gmail.com> wrote:
> Simple really!
>
> I'm trying to resolve a small issue by printing out an object as a program
> runs. The logger is filling up the console with lots of useful meaningful
> information, however just for this one issue I'd really like it not to print
> anything out!
>
> Is there a way I can turn it off?
>
> Thanks
>

Re: Can I turn off the logger output?

Posted by Sebastian Schelter <ss...@googlemail.com>.
Have a look here: http://www.slf4j.org/manual.html#binding

You can integrate sl4j with the logging framework of your choice, maybe 
the NOP logger is exactly what you want

On 06.03.2011 14:28, Steven Bourke wrote:
> Simple really!
>
> I'm trying to resolve a small issue by printing out an object as a program
> runs. The logger is filling up the console with lots of useful meaningful
> information, however just for this one issue I'd really like it not to print
> anything out!
>
> Is there a way I can turn it off?
>
> Thanks
>