Ejemplo n.º 1
0
 private void log(String message, String type) {
   out.println(
       "<"
           + UtcTimestampConverter.convert(SystemTime.getDate(), includeMillis)
           + ", "
           + sessionID
           + ", "
           + type
           + "> ("
           + message
           + ")");
 }
Ejemplo 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);
 }