public String stringForm() {
    StringBuilder sb = new StringBuilder("LocationInfo{\n");
    packageName.ifPresent(s -> sb.append("package='").append(s).append("'\n"));
    className.ifPresent(s -> sb.append("class='").append(s).append("'\n"));
    method.ifPresent(s -> sb.append("method='").append(s).append("'\n"));
    fileName.ifPresent(s -> sb.append("file='").append(s).append("'\n"));
    lineNumber.ifPresent(s -> sb.append("line='").append(s).append("'\n"));
    message.ifPresent(s -> sb.append("message'").append(s).append("'\n"));
    sb.append("}");
    return sb.toString();
  }
Constructor

@param packageName the package name (of the class)
@param className   the name of the class.
@param method      the name of the method
@param fileName    the name of the file
@param lineNumber  the name of the line number in the file.
@param message     log message
olv-api/src/main/java/pl/otros/logview/api/model/LocationInfo.java