chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jerome Boulon (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CHUKWA-41) ChukwaLog4jAppender does not escape \n for exception
Date Thu, 19 Mar 2009 19:48:50 GMT

    [ https://issues.apache.org/jira/browse/CHUKWA-41?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12683587#action_12683587
] 

Jerome Boulon commented on CHUKWA-41:
-------------------------------------

//escape the newlines from record bodies and then write this record to the log file
		  this.qw.write(RecordConstants.escapeAllButLastRecordSeparator("\n",this.layout.format(event)));

		  if(layout.ignoresThrowable()) {
			  String[] s = event.getThrowableStrRep();
			  if (s != null) {
				  int len = s.length;
				  for(int i = 0; i < len; i++) {
					  this.qw.write(s[i]);
					  this.qw.write(Layout.LINE_SEP);
				  }
			  }
		  }

should be 
//escape the newlines from record bodies and then write this record to the log file
		  this.qw.write(RecordConstants.escapeAllButLastRecordSeparator("\n",this.layout.format(event)));

		  if(layout.ignoresThrowable()) {
			  String[] s = event.getThrowableStrRep();
			  if (s != null) {
				  int len = s.length;
				  for(int i = 0; i < len; i++) {
					  this.qw.write(s[i]);
					  this.qw.write(CTRL_D + "\n");
				  }
			  }
		  }

> ChukwaLog4jAppender does not escape \n for exception
> ----------------------------------------------------
>
>                 Key: CHUKWA-41
>                 URL: https://issues.apache.org/jira/browse/CHUKWA-41
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>            Reporter: Jerome Boulon
>            Assignee: Jerome Boulon
>            Priority: Blocker
>


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message