logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Helm, Mary (MCS Release)" <mary.h...@hpe.com>
Subject RE: question
Date Thu, 24 Mar 2016 16:35:45 GMT
Further investigation shows this happens when running on Windows - not Linux.  The logs are
single-spaced on Linux but double-spaced on Windows using this log4j2.xml

<Configuration status="info">
        <Console name="console" target="SYSTEM_OUT" follow="true">
                <Pattern>%d [%10.10t] %-5.5p %30.30c{2} - %m%n</Pattern>
        <Root level="info">
            <AppenderRef ref="console" />
        <Logger name="internal.name" level="debug" />


-----Original Message-----
From: Helm, Mary (MCS Release) 
Sent: Thursday, February 18, 2016 11:51 AM
To: log4j-user@logging.apache.org
Subject: question

We have noticed this behavior on app servers running either JBOSS EAP 6.4 or Wildfly 9.0.1

We are using the Console appender within our log4j2.xml file for our web-app and we are seeing
that any log4j2 messages written to the log are formatted as double-spaced. Removing the "%n"
from our log4j2.xml pattern results in the log4j2 messages appearing on a single line.

Is there a way to single space all the information that is logged in the same file?  We do
want both the JBOSS and application messages in the same server.log file.

Mary T. Helm
Services Information Developer IV, CEM/JAVA SME Medicare Part  B Shared System Claims Processing
Maintenance Medicare Systems High Maturity Group an SEI CMMI Level 5 Organization Hewlett
Packard Enterprise Telephone +1 717.547.7791 Email mary.helm@hpe.com<mailto:mary.helm@hpe.com>
1250 Camp Hill Bypass  MS 1-400
Camp Hill, PA 17011
CONFIDENTIALITY NOTICE: This e-mail message, including any attachments, is for the sole use
of the intended recipient's) and may contain HP Internal or HP Confidential information. Any
unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all copies of the original

To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message