io.smilego.tenant.util.LogBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of multi-tenant-spring-boot-starter Show documentation
Show all versions of multi-tenant-spring-boot-starter Show documentation
A application used as an example on how to set up pushing
its components to the Central Repository.
package io.smilego.tenant.util;
public class LogBuilder {
private String header;
private String rows;
public LogBuilder() {
}
public LogBuilder(String header, String rows) {
super();
this.header = header;
this.rows = rows;
}
public static LogBuilder of() {
return new LogBuilder("", "");
}
public LogBuilder header(String header) {
this.header = " => " + header;
return this;
}
public LogBuilder row(String row) {
this.rows += "\n - " + row;
return this;
}
public LogBuilder row(String description, Object value) {
this.rows += "\n - " + description + ": " + String.valueOf(value);
return this;
}
public String build() {
return header + rows;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy