nextLine = stackTraceArray[i] + "\n";
stackTrace.append(nextLine);
}
}
String message = String.format("%s %s %s", hostname, layout.format(loggingEvent), stackTrace.toString());
LogEntry entry = new LogEntry(scribe_category, message);
logEntries.add(entry);
client.Log(logEntries);
} catch (TTransportException e) {
transport.close();