Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.

Bug 1070453

Summary: [GSS] (6.2.x) System.out.println() doesn't work when using per-deployment logging
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Kyle Lape <klape>
Component: LoggingAssignee: Chao Wang <chaowan>
Status: CLOSED CURRENTRELEASE QA Contact: Nikoleta Hlavickova <nziakova>
Severity: unspecified Docs Contact: Nichola Moore <nmoore>
Priority: unspecified    
Version: 6.2.0CC: cdewolf, chaowan, sgilda
Target Milestone: CR2   
Target Release: EAP 6.2.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
In previous versions of JBoss EAP 6, a bug prevented the System.out.println() method from printing to the console, server.log, or test.log files when per-deployment logging was in use. This bug was resolved with an upstream patch.
Story Points: ---
Clone Of: 1070452 Environment:
Last Closed: 2014-06-09 12:45:59 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1070452    
Bug Blocks: 1067532, 1071479    

Description Kyle Lape 2014-02-26 21:33:09 UTC
Say you have the file META-INF/log4j.xml:

<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
  <appender name="FILE" class="org.apache.log4j.FileAppender">
    <param name="File" value="test.log"/>
    <param name="Append" value="true"/>
    <param name="DatePattern" value="'.'yyyy-MM-dd"/>
    <layout class="org.apache.log4j.PatternLayout">
      <param name="ConversionPattern" value="%d %-5p [%c:%L] %m%n"/>
    </layout>
  </appender>
  <category name="com.redhat.gss.logging">
    <priority value="INFO"/>
  </category>
  <root>
    <appender-ref ref="FILE"/>
  </root>
</log4j:configuration>

And then you do this in some application code:

    System.out.println("system.out.println statement");

This logging statement will not be logged on the console, server.log, or test.log.  It's nowhere to be found.

Comment 2 Chao Wang 2014-04-11 10:05:38 UTC
issue depends on bz1071479 and its marked as "triage" for 6.2.3.

Comment 3 Nikoleta Hlavickova 2014-05-05 13:04:01 UTC
Verified with EAP 6.3.0.CP.CR2

Comment 5 sgilda 2014-05-19 11:35:17 UTC
Fixed release note typos reported in Bug 1098885.