Hi Denys,

No worry for the delay, I get regularly swamped as well :)

The normal way to get rid of log messages is to configure the Java logging 
system with a properties file as explained here. You can raise the log level 
and remove log handlers:
http://wiki.restlet.org/docs_2.0/13-restlet/48-restlet/101-restlet.html

Also, if you are still using 1.2 M2, I strongly encourage you to upgrade to 2.0 
M6 and using the new ServerResource class for your resources.

If you still feel like something is wrong, please enter a detailed defect 
report in the issue tracker: http://www.restlet.org/community/issues

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com



-----Message d'origine-----
De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
Envoyé : mercredi 9 décembre 2009 16:34
À : discuss@restlet.tigris.org
Objet : RE: ERROR messages in log file

Hi Jerome -

I am sorry for such a long delay in my response.

I am using ServerServlet in my application. I have one class which extends
Application and several classes which extends Resource class.
In my web.xml I have
  <servlet>
      <servlet-name>RestletServlet</servlet-name>
      <servlet-class>
         com.noelios.restlet.ext.servlet.ServerServlet
      </servlet-class>
  </servlet>

In my case restlet functionality is working perfect by error messages appear
in log file after each call.

I can't use getLogService().setEnabled(false) because I do not inherit from
Component. 

I make lots of debugging and have found out that Restlet Log has one Handler
- Console handler. I have removed it and this helped to solve my problem,
but this is not very good solution. 

Could you please help me?
If you need more information, please let me know.

Thanks,
   Denys


jlouvel wrote:
> 
> Denys,
> 
> Could you give us more details about your Restlet configuration? For
> example, do you deploy in a Servlet container? Do you use ServerServlet or
> ServletAdapter (ex-ServletConverter)?
> 
> Best regards,
> Jerome Louvel
> --
> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
> 
> -----Message d'origine-----
> De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
> Envoyé : vendredi 12 juin 2009 15:47
> À : discuss@restlet.tigris.org
> Objet : RE: ERROR messages in log file
> 
> Thank you for response, Jerome -
> 
> One more question: am I doing something wrong? What may be the reasons of
> this ERROR messages?
> 
> Thank you for help,
> - Denys
> 
> 
> jlouvel wrote:
>> 
>> Hi Denys,
>> 
>> This is produced by the LogService. It is similar to regular Web servers
>> logging except that it goes in the console by default. To customize
>> logging
>> level and output formats, check:
>> http://wiki.restlet.org/docs_1.2/13-restlet/48-restlet/101-restlet.html
>> 
>> You can also turn it off altogether by calling
>> getLogService().setEnabled(false) on your Component instance.
>> 
>> Best regards,
>> Jerome Louvel
>> --
>> Restlet ~ Founder and Lead developer ~ http://www.restlet.org
>> Noelios Technologies ~ Co-founder ~ http://www.noelios.com
>> 
>> 
>> -----Message d'origine-----
>> De : Denys Hryvastov [mailto:dhryvas...@serena.com] 
>> Envoyé : mardi 2 juin 2009 09:44
>> À : discuss@restlet.tigris.org
>> Objet : ERROR messages in log file
>> 
>> Hi All!
>> I am using restlet 1.2-M2 and I am faced with such problem:
>> I make calls to restlet services and get correct response, but after each
>> call I get such messages in log file:
>> ERROR 2009-06-02 10:33:57,654 STDERR -- 2/6/2009 10:33:57
>> org.restlet.engine.LogFilter afterHandle
>> 
>> Can somebody tell me what is the reason why this messages appear? 
>> -- 
>> View this message in context:
>> http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3010777.html
>> Sent from the Restlet Discuss mailing list archive at Nabble.com.
>> 
>> ------------------------------------------------------
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=23586
>> 79
>> 
>> ------------------------------------------------------
>> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2360905
>> 
>> 
> 
> -- 
> View this message in context:
> http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p3067726.html
> Sent from the Restlet Discuss mailing list archive at Nabble.com.
> 
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2361605
> 
> ------------------------------------------------------
> http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2362578
> 
> 

-- 
View this message in context: 
http://n2.nabble.com/ERROR-messages-in-log-file-tp3010777p4140039.html
Sent from the Restlet Discuss mailing list archive at Nabble.com.

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2428883

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2433617

Reply via email to