1 package okw.log.log2html;
3 import org.apache.commons.text.StringEscapeUtils;
19 protected void ErrorCount()
23 if ( myParent !=
null )
25 myParent.ErrorCount();
30 protected String getHTMLResult()
32 StringBuilder sbResult =
new StringBuilder();
34 String lvsIndention = this.getLevelIndention();
36 sbResult.append( lvsIndention + myIndentionBase +
"<p class='LogError'>" + StringEscapeUtils.escapeHtml4(
this.Info) +
"</p>\n" );
38 return sbResult.toString();
42 protected String getJSONResult()
44 StringBuilder myJSON =
new StringBuilder();
46 myJSON.append( this.jsonElement(
"Error", this.Info ) );
48 return myJSON.toString();