No Jetty log output [message #139022] |
Thu, 02 July 2009 13:53 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
Hi,
i recently noticed that i don't get any (embedded) jetty log output when launching my app inside eclipse.
i know that there once was log output and i did not turn it off explicitely.
the jetty documentation states that jetty uses slf4j, it is present in the classpath, otherwise it logs to stderr (default behaviour).
i can ensure that there is no org.slf4j package in the classpath and stderr output in the console works. i also tried passing -DDEBUG or
-DVERBOSE as a parameter, without success.
do you get log output?!
greetings,
ben
|
|
|
Re: No Jetty log output [message #139118 is a reply to message #139022] |
Thu, 02 July 2009 22:13 |
Benjamin Muskalla Messages: 338 Registered: July 2009 |
Senior Member |
|
|
Hi Ben,
the org.eclipse.equinox.http.jetty bundle is responsible for starting
the jetty engine and sets several properties - one of these is the log
level.
You need to specify
"-Dorg.eclipse.equinox.http.jetty.log.stderr.threshold=info" as VM
argument to get the logs back.
Small excerpt from the code:
Jetty will use a basic stderr logger if no other logging mechanism is
provided. This setting can be used to over-ride the stderr logger
threshold(and only this default logger)
Valid values are in increasing threshold: "debug", "info", "warn",
"error", and "off" (default threshold is "warn").
Hope that helps
Ben
Benjamin Wolff wrote:
> Hi,
>
>
> i recently noticed that i don't get any (embedded) jetty log output when
> launching my app inside eclipse.
> i know that there once was log output and i did not turn it off
> explicitely.
>
> the jetty documentation states that jetty uses slf4j, it is present in
> the classpath, otherwise it logs to stderr (default behaviour).
> i can ensure that there is no org.slf4j package in the classpath and
> stderr output in the console works. i also tried passing -DDEBUG or
> -DVERBOSE as a parameter, without success.
>
> do you get log output?!
>
>
> greetings,
> ben
--
Benjamin Muskalla | EclipseSource Karlsruhe
http://www.eclipsesource.com | http://twitter.com/eclipsesource
|
|
|
Re: No Jetty log output [message #139202 is a reply to message #139118] |
Fri, 03 July 2009 12:04 |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
Hi,
that helps indeed, thanks a lot!
greetings,
ben
Benjamin Muskalla schrieb:
> Hi Ben,
>
> the org.eclipse.equinox.http.jetty bundle is responsible for starting
> the jetty engine and sets several properties - one of these is the log
> level.
>
> You need to specify
> "-Dorg.eclipse.equinox.http.jetty.log.stderr.threshold=info" as VM
> argument to get the logs back.
>
> Small excerpt from the code:
> Jetty will use a basic stderr logger if no other logging mechanism is
> provided. This setting can be used to over-ride the stderr logger
> threshold(and only this default logger)
> Valid values are in increasing threshold: "debug", "info", "warn",
> "error", and "off" (default threshold is "warn").
>
> Hope that helps
> Ben
>
> Benjamin Wolff wrote:
>> Hi,
>>
>>
>> i recently noticed that i don't get any (embedded) jetty log output
>> when launching my app inside eclipse.
>> i know that there once was log output and i did not turn it off
>> explicitely.
>>
>> the jetty documentation states that jetty uses slf4j, it is present in
>> the classpath, otherwise it logs to stderr (default behaviour).
>> i can ensure that there is no org.slf4j package in the classpath and
>> stderr output in the console works. i also tried passing -DDEBUG or
>> -DVERBOSE as a parameter, without success.
>>
>> do you get log output?!
>>
>>
>> greetings,
>> ben
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.03383 seconds