How to change the http log file?
How to change the http log file?
like the title. help me!
Re: How to change the http log file?
Hi,
what do you mean by "change it"?
Change the name of the log file? Change the logging levels? Can you be more specific?
Thanks
what do you mean by "change it"?
Change the name of the log file? Change the logging levels? Can you be more specific?
Thanks
Re: How to change the http log file?
Change the name of the log file and location saved. ThanksLapo wrote:Hi,
what do you mean by "change it"?
Change the name of the log file? Change the logging levels? Can you be more specific?
Thanks
Re: How to change the http log file?
Open the jetty.xml file under www/cfg/
Look for this block of XML, approximately at line 152:
Here you can change location, name and a few other parameters.
Hope it helps
Look for this block of XML, approximately at line 152:
Code: Select all
<!-- =========================================================== -->
<!-- Configure Request Log -->
<!-- =========================================================== -->
<Ref id="requestLog">
<Set name="requestLog">
<New id="requestLogImpl" class="org.mortbay.jetty.NCSARequestLog">
<Arg><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Arg>
<Set name="retainDays">90</Set>
<Set name="append">true</Set>
<Set name="extended">false</Set>
<Set name="LogTimeZone">GMT</Set>
</New>
</Set>
</Ref>Hope it helps
Re: How to change the http log file?
thank you very much!Lapo wrote:Open the jetty.xml file under www/cfg/
Look for this block of XML, approximately at line 152:
Here you can change location, name and a few other parameters.Code: Select all
<!-- =========================================================== --> <!-- Configure Request Log --> <!-- =========================================================== --> <Ref id="requestLog"> <Set name="requestLog"> <New id="requestLogImpl" class="org.mortbay.jetty.NCSARequestLog"> <Arg><SystemProperty name="jetty.logs" default="./logs"/>/yyyy_mm_dd.request.log</Arg> <Set name="retainDays">90</Set> <Set name="append">true</Set> <Set name="extended">false</Set> <Set name="LogTimeZone">GMT</Set> </New> </Set> </Ref>
Hope it helps