04.08.07 в 16:10 Jerome Louvel в своём письме писал(а):
Hi Evgeny,
There is indeed a hole here. The NRE provides a dedicated log handler and
sends all the access log messages to the logger name of your Component
class, with a "www" at the end (ex:
"com.mycompany.rest.MyComponent.www").
I've attached a working example used by the Restlet.org web site. I will
also update the docs on the topic. See new issue:
http://restlet.tigris.org/issues/show_bug.cgi?id=343
Best regards,
Jerome
Hi Jerome !
Thnx for answer but the issue is still unresolved for me.
What is
your Component class
??
I'm not extending the component class in my application. I'm doing smth
like code below in main() method of my service.
Component component = new Component();
Application application = new Application(component.getContext()) {
public Restlet createRoot() {
Router router = new Router(getContext());
.....
return router;
}
;
application.getMetadataService().setDefaultLanguage(Language.ENGLISH);
Server server = new Server(Protocol.HTTP, 8182, application);
component.getServers().add(server);
component.getDefaultHost().attach("", application);
component.start();
What name i should use for configiring my logger ?
Thnx in advance.
--
Best Regards
Evgeny K. Shepelyuk