bluecrystal.service.util.LogManager Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bluecrystal.deps.service Show documentation
Show all versions of bluecrystal.deps.service Show documentation
API that should be used by applications
package bluecrystal.service.util;
import java.io.PrintWriter;
import java.io.StringWriter;
public class LogManager {
public static String exceptionToString(Throwable e){
StringWriter sw = new StringWriter();
PrintWriter pw = new PrintWriter(sw);
e.printStackTrace(pw);
return sw.toString(); // stack trace as a string
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy