Redirecting standard output

From CauchoWiki

Jump to: navigation, search


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

[edit] See Also

Log Rollover

[edit] 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