1. /**
  2. * @author s.tihomirov
  3. * java.util.logging.LogRecord with attached files
  4. */
  5. public static class LogRecWithAttach extends LogRecord {
  6. private File attached;
  7. private static final long serialVersionUID = 1L;
  8. public LogRecWithAttach(Level level, String msg) {
  9. super(level, msg);
  10. }
  11. private void setAttachment(File attached)
  12. {
  13. this.attached = attached;
  14. }
  15. public File getAttachedFile()
  16. {
  17. return attached;
  18. }
  19. }