i tried configure jetty log4j. create logfiles. however, capture/configure output log4j stdout , stderr.
is there way configure jetty-logging.xml uses slf4j , redirects stdout , stderr defined logger, can configure in log4j.properties?
i thinking of this:
<configure id="logging" class="org.eclipse.jetty.util.log.slf4jlog"> <!-- redirect stdout , stderr logger name 'stdoutstderrlogger' --> <new id="serverlog" class="???"> <arg> <new class="???"> <!-- ????? --> <get id="serverlogname" name="???"/> </new> </arg> </new> <get name="rootlogger"> <call name="info"><arg>redirect stdout , stderr logger name 'stdoutstderrlogger' <ref refid="serverlogname"/></arg></call> </get> <call class="java.lang.system" name="seterr"><arg><ref refid="serverlog"/></arg></call> <call class="java.lang.system" name="setout"><arg><ref refid="serverlog"/></arg></call> </configure>
thanks answers
Comments
Post a Comment