logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Gary Gregory <garydgreg...@gmail.com>
Subject RE: question
Date Thu, 24 Mar 2016 19:36:35 GMT
Are you generating logs on windows and viewing them on linux or vice versa?

Gary
On Mar 24, 2016 9:55 AM, "Helm, Mary (MCS Release)" <mary.helm@hpe.com>
wrote:

> Yes, an extra empty (or blank) line is appearing between the log
> statements written by the application code - not by the system itself
> though.  Anything in the log from JBOSS itself is showing as single-spaced.
>
> Thanks,
> Mary
>
>
> -----Original Message-----
> From: Remko Popma [mailto:remko.popma@gmail.com]
> Sent: Thursday, March 24, 2016 12:46 PM
> To: Log4J Users List <log4j-user@logging.apache.org>
> Subject: Re: question
>
> Mary, I recommend you raise a Jira ticket for this.
> I don't know about the other Log4j community members, but I currently
> don't have time to look into this and without a Jira ticket it may quickly
> drop below my mailbox horizon...
>
> Also, perhaps this is because I'm not a native English speaker, but with
> "double-spaced" you mean there's an extra empty line between log
> statements, right?
>
>
> On Fri, Mar 25, 2016 at 1:35 AM, Helm, Mary (MCS Release) <
> mary.helm@hpe.com
> > wrote:
>
> > 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">
> >     <Appenders>
> >         <Console name="console" target="SYSTEM_OUT" follow="true">
> >             <PatternLayout>
> >                 <Pattern>%d [%10.10t] %-5.5p %30.30c{2} - %m%n</Pattern>
> >             </PatternLayout>
> >         </Console>
> >     </Appenders>
> >     <Loggers>
> >         <Root level="info">
> >             <AppenderRef ref="console" />
> >         </Root>
> >         <Logger name="internal.name" level="debug" />
> >     </Loggers>
> > </Configuration>
> >
> > Thanks,
> > Mary
> >
> > -----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 Final.
> >
> >
> >
> > 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 message.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> > For additional commands, e-mail: log4j-user-help@logging.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
> For additional commands, e-mail: log4j-user-help@logging.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message