1 23 24 31 package com.sun.enterprise.server.logging; 32 33 import javax.management.Notification ; 34 import java.util.logging.LogRecord ; 35 36 39 public class LogAlarm extends Notification { 40 41 private LogRecord logRecord; 42 43 public LogAlarm(String type, Object source, LogRecord record) { 44 super(type, source, (long) 0, 45 FileandSyslogHandler.getInstance().getFormatter().format(record)); 46 logRecord = record; 47 } 48 49 public LogRecord getLogRecord() { 50 return logRecord; 51 } 52 } 53 | Popular Tags |