You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Chris Schilling <ch...@gmail.com> on 2010/10/05 01:22:17 UTC

Loggin question

Hello Mahout Users!

I am fairly new to Java.  I am working through the examples in the book MIA.  When I run my simple recommender program in eclipse, I see a lot of logging messages.  For instance:

Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Evaluated with user 633 in 22ms
Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Precision/recall/fall-out: 0.006666666666666665 / 0.004873294346978557 / 7.504206515457761E-4
Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Processed 943 users

So, easy question:  Is it possible to set the logging levels with an xml or properties file? How do I go about this?

Thanks
Chris S.


Re: Loggin question

Posted by Chris Schilling <ch...@gmail.com>.
Okay,

Thanks Sean,

I was able to turn off the logging with that information. Thanks for the quick reply!

Chris

On Oct 4, 2010, at 4:25 PM, Sean Owen wrote:

> Mahout logs via SLF4J, which is a sort of meta-logger. It logs to whatever
> log system you have in your classpath (by adding certain SLF4J bindings). So
> you configure *that* logging system.
> 
> By default I think it does nothing, so if you see the messages, you've got
> some logging bindings going, maybe the Java SDK logger? That's configured
> with a logging.properties file or command line params, and you can check the
> java.util.logging javadoc for detail.
> 
> On Tue, Oct 5, 2010 at 12:22 AM, Chris Schilling
> <ch...@gmail.com>wrote:
> 
>> Hello Mahout Users!
>> 
>> I am fairly new to Java.  I am working through the examples in the book
>> MIA.  When I run my simple recommender program in eclipse, I see a lot of
>> logging messages.  For instance:
>> 
>> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
>> INFO: Evaluated with user 633 in 22ms
>> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
>> INFO: Precision/recall/fall-out: 0.006666666666666665 /
>> 0.004873294346978557 / 7.504206515457761E-4
>> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
>> INFO: Processed 943 users
>> 
>> So, easy question:  Is it possible to set the logging levels with an xml or
>> properties file? How do I go about this?
>> 
>> Thanks
>> Chris S.
>> 
>> 


Re: Loggin question

Posted by Sean Owen <sr...@gmail.com>.
Mahout logs via SLF4J, which is a sort of meta-logger. It logs to whatever
log system you have in your classpath (by adding certain SLF4J bindings). So
you configure *that* logging system.

By default I think it does nothing, so if you see the messages, you've got
some logging bindings going, maybe the Java SDK logger? That's configured
with a logging.properties file or command line params, and you can check the
java.util.logging javadoc for detail.

On Tue, Oct 5, 2010 at 12:22 AM, Chris Schilling
<ch...@gmail.com>wrote:

> Hello Mahout Users!
>
> I am fairly new to Java.  I am working through the examples in the book
> MIA.  When I run my simple recommender program in eclipse, I see a lot of
> logging messages.  For instance:
>
> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
> INFO: Evaluated with user 633 in 22ms
> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
> INFO: Precision/recall/fall-out: 0.006666666666666665 /
> 0.004873294346978557 / 7.504206515457761E-4
> Oct 4, 2010 4:03:36 PM org.slf4j.impl.JCLLoggerAdapter info
> INFO: Processed 943 users
>
> So, easy question:  Is it possible to set the logging levels with an xml or
> properties file? How do I go about this?
>
> Thanks
> Chris S.
>
>