tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Bug 53930] New: allow capture of catalina stdout/stderr to a command instead of just a file
Date Mon, 24 Sep 2012 15:53:47 GMT

          Priority: P2
            Bug ID: 53930
           Summary: allow capture of catalina stdout/stderr to a command
                    instead of just a file
          Severity: enhancement
    Classification: Unclassified
                OS: Mac OS X 10.4
          Hardware: Macintosh
            Status: NEW
           Version: trunk
         Component: Catalina
           Product: Tomcat 8

Created attachment 29414
patch to adding support for CATALINA_OUT_CMD currently supports passing in a value for CATALINA_OUT. If supplied
the stdout/stderr of the java process will be redirected to this file. This
single file scenario makes it difficult to keep file contents for long running
process separated on a per day basis as is typical for production logging
scenarios.  We use cronolog (http:// to do automatic log
rolling but others may have different needs.  The attached patch adds support
to for an optional CATALINA_OUT_CMD variable. If this variable is
defined, the stdout and stderr of the java process will be piped to the
command.  We use it as in:

CATALINA_OUT_CMD="cronolog $CATALINA_BASE/logs/catalina.%Y-%m-%d.out >/dev/null
export CATALINA_OUT_CMD start $@

Of course long-running, server-side applications should typically not be
writing to stdout/stderr but sometimes this is out of your control.

You are receiving this mail because:
You are the assignee for the bug.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message