Mantis Bugtracker
  

Viewing Issue Simple Details [ Jump to Notes ] [ View Advanced ] [ Issue History ] [ Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0005260 [Resin] minor always 10-25-12 17:48 11-03-14 18:42
Reporter rickHigh View Status public  
Assigned To ferg
Priority normal Resolution no change required  
Status closed   Product Version
Summary 0005260: Logging to stdout not working like previous release (goes to wrong file)
Description We recently upgraded Resin from 4.023 to version 4.0.32 and it looks logging is no longer working as it had prior to the upgrade. Specifically, log handlers that are defined with the special ?stdout:? path are no longer writing to the file that we specified in the path of the special stdout tag. Instead, we are seeing the log messages in the watchdog?s jvm-default.log file. Here are the log definitions from our resin.xml file. The tags are all children of the cluster tag.
 
<stdout-log path=?/home/resin/logs/stdout-${serverId}.log" rollover-period="1D" timestamp="[%m/%d/%Y:%H:%M:%S.%s] " archive-format="stdout-${serverId}-%Y%m%d.log.gz"/>
<stderr-log path="/home/resin /logs/stderr-${serverId}.log" rollover-period="1D" timestamp="[%m/%d/%Y:%H:%M:%S.%s] " archive-format="stderr-${serverId}-%Y%m%d.log.gz"/>
 
<log-handler name="" level="info" path="stdout:" timestamp="" format="[${app.contextPath}] ${log.level} ${log.sourceClassName}.${log.sourceMethodName} ${log.message}"/>
 
<log-handler name="com.caucho" level="info" path="stdout:" timestamp=""/>
<log-handler name="com.caucho.java" level="config" path="stdout:" timestamp=""/>
<log-handler name="com.caucho.loader" level="config" path="stdout:" timestamp=""/>
 
I looked through the release notes and the Caucho issue tracker and I didn?t see any changes related to logging. Is this a possible bug or are we misinterpreting the stdout/stderr tags and how they relate to the special stdout/stderr paths in the handlers?
Additional Information
Attached Files

- Relationships

- Notes
(0006548)
ferg
11-03-14 18:42

The issue looks like the placement in the <cluster> context.

The <cluster> isn't the same as the system context, so if the logging context is at the system context, you'll see the default configuration. In my testing the issue was the log-handler.

If the log-handler is moved out of the <cluster> and left in the <resin> context, the configured logs will go to the stdout-log handler.
 

- Issue History
Date Modified Username Field Change
10-25-12 17:48 rickHigh New Issue
10-26-12 07:04 rjohnson Issue Monitored: rjohnson
11-03-14 18:42 ferg Note Added: 0006548
11-03-14 18:42 ferg Assigned To  => ferg
11-03-14 18:42 ferg Status new => closed
11-03-14 18:42 ferg Resolution open => no change required
11-03-14 18:42 ferg Fixed in Version  => 4.0.42
11-03-14 18:42 ferg Description Updated


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