The list of methods to do Log Exception are organized into topic(s).
String
logError(String s, Throwable e) log Error
String msg = s + (e == null ? "" : ": " + e.toString());
echoln(msg);
if (e != null) {
if (verbose)
e.printStackTrace(System.out);
if (logOut != null) {
e.printStackTrace(logOut);
logOut.flush();
...
void
LogException(Exception ex) Log Exception
PrintWriter out = null;
try {
out = new PrintWriter(new BufferedWriter(new FileWriter("log.txt", true)));
ex.printStackTrace(out);
} catch (IOException e) {
} finally {
if (out != null) {
out.close();
...
void
LogException(String description, Throwable e) Log Exception
File file = new File(getLogPath());
FileWriter writer = null;
BufferedWriter bufferedWriter = null;
try {
writer = new FileWriter(file);
bufferedWriter = new BufferedWriter(writer);
bufferedWriter.flush();
bufferedWriter.newLine();
...