br.com.jarch.svn.LogSvn Maven / Gradle / Ivy
The newest version!
package br.com.jarch.svn;
import br.com.jarch.util.LogUtils;
import java.util.List;
public class LogSvn {
public void formatBeginMiddleEnd(List log, Class classe, String[] linhas) {
formatBeginMiddleEnd(log, classe.getSimpleName(), linhas);
}
public void formatBegin(List log, String value) {
String formattedValue = "# INICIO ".concat(value).concat(" ").concat("#".repeat(70));
log.add(formattedValue);
LogUtils.log(formattedValue);
}
public void formatMiddle(List log, String value) {
String formattedValue = "# ".concat(value);
log.add(formattedValue);
LogUtils.log(formattedValue);
}
public void formatEnd(List log, String value) {
String formattedValue = "# FIM ".concat(value).concat(" ").concat("#".repeat(70));
log.add(formattedValue);
LogUtils.log(formattedValue);
}
public void formatBeginMiddleEnd(List log, String title, String[] values) {
System.out.println(title);
for (int i = 0; i < values.length; i++)
System.out.println(values[i]);
log.add("# INICIO ".concat(title).concat(" ").concat(" ").concat("#".repeat(70)));
for (String linha : values)
log.add("### ".concat(linha));
log.add("# FIM ".concat(title).concat(" ").concat("#".repeat(70)));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy