OpenKeyWord  Build_ID: 457, Datum: 01.02.2020 07:45:48
Dont repeat yourself. - Do it once and only once!
LogException.java
1 package okw.log.log2html;
2 
3 import org.apache.commons.text.StringEscapeUtils;
4 
5 public class LogException extends LogBaseLeaf
6 {
7 
8  protected LogException( LogBase fpParent, String fpsInfo )
9  {
10  Info = fpsInfo;
11  myID = AllCount;
12  setParent(fpParent);
13 
14  ExceptionCount();
15  }
16 
17  @Override
18  protected String getHTMLResult()
19  {
20  StringBuilder sbResult = new StringBuilder();
21 
22  String lvsIndention = this.getLevelIndention();
23 
24  sbResult.append( lvsIndention + myIndentionBase + "<p class='LogException'>" + StringEscapeUtils.escapeHtml4(this.Info) + "</p>\n" );
25 
26  return sbResult.toString();
27  }
28 
29 
30  protected String getJSONResult()
31  {
32  StringBuilder myJSON = new StringBuilder();
33 
34  myJSON.append( this.jsonElement( "Exception", this.Info ) );
35 
36  return myJSON.toString();
37  }
38 
39 }
okw.log.log2html.LogException
Definition: LogException.java:5
okw.log.log2html.LogBase
Definition: LogBase.java:7
okw.log.log2html.LogBaseLeaf
Definition: LogBaseLeaf.java:3