Bug 1070453 - [GSS] (6.2.x) System.out.println() doesn't work when using per-deployment logging
Summary: [GSS] (6.2.x) System.out.println() doesn't work when using per-deployment log...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: Logging
Version: 6.2.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: CR2
: EAP 6.2.3
Assignee: Chao Wang
QA Contact: Nikoleta Hlavickova
Nichola Moore
URL:
Whiteboard:
Depends On: 1070452
Blocks: eap62-cp03-blockers 1071479
TreeView+ depends on / blocked
 
Reported: 2014-02-26 21:33 UTC by Kyle Lape
Modified: 2018-12-05 17:27 UTC (History)
3 users (show)

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.
Clone Of: 1070452
Environment:
Last Closed: 2014-06-09 12:45:59 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.