/** * Main - starts a an instance of the LogFactor5 console and configures * the console settings. */ public final static void main(String[] args) { LogBrokerMonitor monitor = new LogBrokerMonitor( LogLevel.getLog4JLevels()); monitor.setFrameSize(LF5Appender.getDefaultMonitorWidth(), LF5Appender.getDefaultMonitorHeight()); monitor.setFontSize(12); monitor.show(); }
private LogMonitorAdapter(List userDefinedLevels) { super(); // set the default level to be the first entry in the list _defaultLevel = (LogLevel) userDefinedLevels.get(0); _logMonitor = new LogBrokerMonitor(userDefinedLevels); _logMonitor.setFrameSize(getDefaultMonitorWidth(), getDefaultMonitorHeight()); _logMonitor.setFontSize(12); _logMonitor.show(); }
public AppenderFinalizer(LogBrokerMonitor defaultMonitor) { _defaultMonitor = defaultMonitor; }
public LogBrokerMonitor getLogBrokerMonitor() { return _logMonitor; }
/** * Starts a new thread to parse the log file and create a LogRecord. * See run(). * @param monitor LogBrokerMonitor */ public void parse(LogBrokerMonitor monitor) throws RuntimeException { _monitor = monitor; Thread t = new Thread(this); t.start(); }
public ConfigurationManager(LogBrokerMonitor monitor, LogTable table) { super(); _monitor = monitor; _table = table; load(); }
/** * Starts a new thread to parse the log file and create a LogRecord. * See run(). * @param LogBrokerMonitor */ public void parse(LogBrokerMonitor monitor) throws RuntimeException { _monitor = monitor; Thread t = new Thread(this); t.start(); }
/** * Constructs a <code>LF5Appender<code> using an instance of * a <code>LogBrokerMonitor<code> supplied by the user. This * constructor should only be used when you need to spawn * additional log monitoring windows. * * @param monitor An instance of a <code>LogBrokerMonitor<code> * created by the user. */ public LF5Appender(LogBrokerMonitor monitor) { if (monitor != null) { _logMonitor = monitor; } }