private void log(String message, String type) {
   out.println(
       "<"
           + UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis)
           + ", "
           + sessionID
           + ", "
           + type
           + "> ("
           + message
           + ")");
 }
Esempio n. 2
0
 private void writeTimeStamp(OutputStream out) throws IOException {
   String formattedTime = UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis);
   out.write(formattedTime.getBytes(CharsetSupport.getCharset()));
   out.write(TIME_STAMP_DELIMITER);
 }