How to change the http log file?

Post here your questions about Actionscript and Java server side extensions development.

Moderators: Lapo, Bax

Post Reply
User avatar
khanhdev
Posts: 30
Joined: 24 Mar 2017, 11:32

How to change the http log file?

Post by khanhdev »

like the title. help me!
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to change the http log file?

Post by Lapo »

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
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
khanhdev
Posts: 30
Joined: 24 Mar 2017, 11:32

Re: How to change the http log file?

Post by khanhdev »

Lapo 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
Change the name of the log file and location saved. Thanks
User avatar
Lapo
Site Admin
Posts: 23438
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: How to change the http log file?

Post by Lapo »

Open the jetty.xml file under www/cfg/
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>
Here you can change location, name and a few other parameters.

Hope it helps
Lapo
--
gotoAndPlay()
...addicted to flash games
User avatar
khanhdev
Posts: 30
Joined: 24 Mar 2017, 11:32

Re: How to change the http log file?

Post by khanhdev »

Lapo wrote:Open the jetty.xml file under www/cfg/
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>
Here you can change location, name and a few other parameters.

Hope it helps
thank you very much!
Post Reply