Mantis Bugtracker
  

Viewing Issue Advanced Details [ Jump to Notes ] [ View Simple ] [ Issue History ] [ Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005799 [Resin] minor always 09-17-14 09:43 11-03-14 17:16
Reporter ferg View Status public  
Assigned To ferg
Priority normal Resolution no change required Platform
Status closed   OS
Projection none   OS Version
ETA none Fixed in Version 4.0.42 Product Version 4.0.37
  Product Build
Summary 0005799: stdout redirection issues
Description (rep by Igor Egorov)
I would like to redirect stdout stream to file by using 'stdout-log' configuration (on web-app level) with specified 'rollover-count' and 'rollover-size' properties in resin-pro-4.0.37.

The important point is that deployed web applications are using logback loggers (each application has it's own logback context) with their console appenders to perform logging in stdout.

Also I have to define external logback configuration file to support logging in deployed resource-adapter using logback as well.

<web-app xmlns="http://caucho.com/ns/resin" [^] xmlns:resin="urn:java:com.caucho.resin">
   
    <!-- Resource Adapter -->
    <resource-deploy path="${RESOURCES_LIB_PATH}" expand-path="${GLIBS_APP_HOME}/resources"/>

    <resource-adapter class="org.apache.activemq.ra.ActiveMQResourceAdapter" jndi-name="ActiveMQResourceAdapter">
        <init server-url="${ACTIVE_MQ_SERVER_URL}"/>
    </resource-adapter>
   
    <!-- ... -->
    <stdout-log path="${GLIBS_APP_HOME}/logs/resin_out.log" rollover-size="100mb" rollover-count="2"/>
    <!-- ... -->

</web-app>
Steps To Reproduce
Additional Information
Attached Files

- Relationships

- Notes
(0006547)
ferg
11-03-14 17:16

env/021k

Checked with Resin 4.0.42. stdout-log works in the <web-app> file as expected.

Note that this feature is context-classloader dependent. If a resource uses a different classloader context, e.g. the system context, it will not go to the configured stdout-log.
 

- Issue History
Date Modified Username Field Change
09-17-14 09:43 ferg New Issue
11-03-14 17:16 ferg Note Added: 0006547
11-03-14 17:16 ferg Assigned To  => ferg
11-03-14 17:16 ferg Status new => closed
11-03-14 17:16 ferg Resolution open => no change required
11-03-14 17:16 ferg Fixed in Version  => 4.0.42


Mantis 1.0.0rc3[^]
Copyright © 2000 - 2005 Mantis Group
28 total queries executed.
25 unique queries executed.
Powered by Mantis Bugtracker