Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Jetty 9 logging question

On 24/01/2017 18:08, Chris Walker wrote:

Can you share how you had your logging setup in Jetty 8 in more detail?
The Jetty-specific logging implementation has remained largely
unchanged. Were you using a SLF4J implementation before?

I had this in my jetty.xml, which redirects stderr only:

  <New id="ServerLog" class="">
      <New class="org.eclipse.jetty.util.RolloverFileOutputStream">
<Arg><Property name="jetty.logs" default="./logs"/>/yyyy_mm_dd.jetty.log</Arg>
        <Arg type="boolean">true</Arg>
        <Arg type="int">90</Arg>
<Arg><Call class="java.util.TimeZone" name="getTimeZone"><Arg>GMT</Arg></Call></Arg>
        <Get id="ServerLogName" name="datedFilename"/>

<Call class="java.lang.System" name="setErr"><Arg><Ref id="ServerLog"/></Arg></Call>

John English

Back to the top