Redirecting standard output

From Resin 3.0

Jump to: navigation, search


Resin can redirect the output of System.out and System.err using the stdout-log and stderr-log tags.

See Also

Log Rollover

Example

<resin xmlns="http://caucho.com/ns/resin">
  <stdout-log path="log/stdout.log" timestamp="\[%Y-%m-%d %H:%M:%S] "
              rollover-period="1W"/>
  <stderr-log path="log/stderr.log" timestamp="\[%Y-%m-%d %H:%M:%S] "
              rollover-period="1W"/>
  ...
</resin>
Personal tools