All Downloads are FREE. Search and download functionalities are using the official Maven repository.

bluecrystal.service.util.LogManager Maven / Gradle / Ivy

There is a newer version: 1.16.0
Show newest version
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