Code example for LogRecord

Methods: getLevelgetLoggerNamegetMessagegetMillisgetThrown

0
  public static void serialize(SerializationStreamWriter writer,
      LogRecord lr) throws SerializationException {
    // Although Level is serializable, the Level in LogRecord is actually a 
    // LevelWithExposedConstructor, which serialization does not like, so we 
    // manually just serialize the name. 
    writer.writeString(lr.getLevel().getName());
    writer.writeString(lr.getMessage());
    writer.writeString(lr.getLoggerName());
    writer.writeLong(lr.getMillis());
    if (lr.getThrown() != null) {
      writer.writeObject(new SerializableThrowable(lr.getThrown()));
    } else { 
      writer.writeObject(null);
    } 
  } 
} 
Connect your IDE to all the code out there  Get Codota for Java