Mantis - Resin
Viewing Issue Advanced Details
147 minor always 05-06-05 00:00 11-30-05 14:44
user142  
 
normal  
closed 3.0.13  
3.0.13 fixed  
none    
none 3.0.14  
0000147: Named log going to path="stdout:" gets redirected by <stdout-log>
RSN-141
Debug output to the console (path="stdout:") in resin.conf via a named <log> and <resin:log> winds up getting redirected after a <stdout-log> entry. For example:

<host host-name="hogwarts.com">
  <log name="com.hogwarts.resin.boot" level="info" path="stdout:" timestamp="[%H:%M:%S.%s] "/>
  <resin:log name="com.hogwarts.resin.boot">Now you see me...</resin:log>
  <stdout-log path="c:/hogwarts/stdout.log"/>
  <resin:log name="com.hogwarts.resin.boot">...Now you don't!</resin:log>
</host>

I would expect stdout-log only to apply to things written in code with System.out.println() and possibly un-named logs. I would expect the scenario described above to continue to go to the console. This is useful for monitoring the status of server startup if you have a lot of (or slow starting) webapps.
Windows XP

Notes
(0000175)
ferg   
05-06-05 00:00   
Currently, that behavior is the designed/intended behavior, i.e. we did think about that and chose that behavior.

On the other hand, the requested behavior might be more logical and useful.
(0000176)
sam   
05-06-05 00:00   
Possibly:

<system-out path="..."/>
<system-err path="..."/>

Capture the System.out and System.err streams, but not stdout: or stderr: from Vfs.
(0000177)
ferg   
05-06-05 00:00   
server/020m
(0000178)
user142   
05-06-05 00:00   
Can you clarify on what the fix is? Did you implement system-out/-err as desicribed by Sam or some other fix?