亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? logbrokermonitor.java

?? log4j的源碼
?? JAVA
?? 第 1 頁 / 共 4 頁
字號:
/* * Copyright 1999-2005 The Apache Software Foundation. *  * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at *  *      http://www.apache.org/licenses/LICENSE-2.0 *  * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */package org.apache.log4j.lf5.viewer;import org.apache.log4j.lf5.LogLevel;import org.apache.log4j.lf5.LogRecord;import org.apache.log4j.lf5.LogRecordFilter;import org.apache.log4j.lf5.util.DateFormatManager;import org.apache.log4j.lf5.util.LogFileParser;import org.apache.log4j.lf5.util.StreamUtils;import org.apache.log4j.lf5.viewer.categoryexplorer.CategoryExplorerTree;import org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath;import org.apache.log4j.lf5.viewer.configure.ConfigurationManager;import org.apache.log4j.lf5.viewer.configure.MRUFileManager;import javax.swing.*;import java.awt.*;import java.awt.event.ActionEvent;import java.awt.event.ActionListener;import java.awt.event.WindowAdapter;import java.awt.event.WindowEvent;import java.io.File;import java.io.IOException;import java.io.InputStream;import java.net.MalformedURLException;import java.net.URL;import java.util.*;import java.util.List;/** * LogBrokerMonitor *. * @author Michael J. Sikorsky * @author Robert Shaw * @author Brad Marlborough * @author Richard Wan * @author Brent Sprecher * @author Richard Hurst */// Contributed by ThoughtWorks Inc.public class LogBrokerMonitor {  //--------------------------------------------------------------------------  //   Constants:  //--------------------------------------------------------------------------  public static final String DETAILED_VIEW = "Detailed";//    public static final String STANDARD_VIEW = "Standard";//    public static final String COMPACT_VIEW = "Compact";  //--------------------------------------------------------------------------  //   Protected Variables:  //--------------------------------------------------------------------------  protected JFrame _logMonitorFrame;  protected int _logMonitorFrameWidth = 550;  protected int _logMonitorFrameHeight = 500;  protected LogTable _table;  protected CategoryExplorerTree _categoryExplorerTree;  protected String _searchText;  protected String _NDCTextFilter = "";  protected LogLevel _leastSevereDisplayedLogLevel = LogLevel.DEBUG;  protected JScrollPane _logTableScrollPane;  protected JLabel _statusLabel;  protected Object _lock = new Object();  protected JComboBox _fontSizeCombo;  protected int _fontSize = 10;  protected String _fontName = "Dialog";  protected String _currentView = DETAILED_VIEW;  protected boolean _loadSystemFonts = false;  protected boolean _trackTableScrollPane = true;  protected Dimension _lastTableViewportSize;  protected boolean _callSystemExitOnClose = false;  protected List _displayedLogBrokerProperties = new Vector();  protected Map _logLevelMenuItems = new HashMap();  protected Map _logTableColumnMenuItems = new HashMap();  protected List _levels = null;  protected List _columns = null;  protected boolean _isDisposed = false;  protected ConfigurationManager _configurationManager = null;  protected MRUFileManager _mruFileManager = null;  protected File _fileLocation = null;  //--------------------------------------------------------------------------  //   Private Variables:  //--------------------------------------------------------------------------  //--------------------------------------------------------------------------  //   Constructors:  //--------------------------------------------------------------------------  /**   * Construct a LogBrokerMonitor.   */  public LogBrokerMonitor(List logLevels) {    _levels = logLevels;    _columns = LogTableColumn.getLogTableColumns();    // This allows us to use the LogBroker in command line tools and    // have the option for it to shutdown.    String callSystemExitOnClose =        System.getProperty("monitor.exit");    if (callSystemExitOnClose == null) {      callSystemExitOnClose = "false";    }    callSystemExitOnClose = callSystemExitOnClose.trim().toLowerCase();    if (callSystemExitOnClose.equals("true")) {      _callSystemExitOnClose = true;    }    initComponents();    _logMonitorFrame.addWindowListener(        new LogBrokerMonitorWindowAdaptor(this));  }  //--------------------------------------------------------------------------  //   Public Methods:  //--------------------------------------------------------------------------  /**   * Show the frame for the LogBrokerMonitor. Dispatched to the   * swing thread.   */  public void show(final int delay) {    if (_logMonitorFrame.isVisible()) {      return;    }    // This request is very low priority, let other threads execute first.    SwingUtilities.invokeLater(new Runnable() {      public void run() {        Thread.yield();        pause(delay);        _logMonitorFrame.setVisible(true);      }    });  }  public void show() {    show(0);  }  /**   * Dispose of the frame for the LogBrokerMonitor.   */  public void dispose() {    _logMonitorFrame.dispose();    _isDisposed = true;    if (_callSystemExitOnClose == true) {      System.exit(0);    }  }  /**   * Hide the frame for the LogBrokerMonitor.   */  public void hide() {    _logMonitorFrame.setVisible(false);  }  /**   * Get the DateFormatManager for formatting dates.   */  public DateFormatManager getDateFormatManager() {    return _table.getDateFormatManager();  }  /**   * Set the date format manager for formatting dates.   */  public void setDateFormatManager(DateFormatManager dfm) {    _table.setDateFormatManager(dfm);  }  /**   * Get the value of whether or not System.exit() will be called   * when the LogBrokerMonitor is closed.   */  public boolean getCallSystemExitOnClose() {    return _callSystemExitOnClose;  }  /**   * Set the value of whether or not System.exit() will be called   * when the LogBrokerMonitor is closed.   */  public void setCallSystemExitOnClose(boolean callSystemExitOnClose) {    _callSystemExitOnClose = callSystemExitOnClose;  }  /**   * Add a log record message to be displayed in the LogTable.   * This method is thread-safe as it posts requests to the SwingThread   * rather than processing directly.   */  public void addMessage(final LogRecord lr) {    if (_isDisposed == true) {      // If the frame has been disposed of, do not log any more      // messages.      return;    }    SwingUtilities.invokeLater(new Runnable() {      public void run() {        _categoryExplorerTree.getExplorerModel().addLogRecord(lr);        _table.getFilteredLogTableModel().addLogRecord(lr); // update table        updateStatusLabel(); // show updated counts      }    });  }  public void setMaxNumberOfLogRecords(int maxNumberOfLogRecords) {    _table.getFilteredLogTableModel().setMaxNumberOfLogRecords(maxNumberOfLogRecords);  }  public JFrame getBaseFrame() {    return _logMonitorFrame;  }  public void setTitle(String title) {    _logMonitorFrame.setTitle(title + " - LogFactor5");  }  public void setFrameSize(int width, int height) {    Dimension screen = Toolkit.getDefaultToolkit().getScreenSize();    if (0 < width && width < screen.width) {      _logMonitorFrameWidth = width;    }    if (0 < height && height < screen.height) {      _logMonitorFrameHeight = height;    }    updateFrameSize();  }  public void setFontSize(int fontSize) {    changeFontSizeCombo(_fontSizeCombo, fontSize);    // setFontSizeSilently(actualFontSize); - changeFontSizeCombo fires event    // refreshDetailTextArea();  }  public void addDisplayedProperty(Object messageLine) {    _displayedLogBrokerProperties.add(messageLine);  }  public Map getLogLevelMenuItems() {    return _logLevelMenuItems;  }  public Map getLogTableColumnMenuItems() {    return _logTableColumnMenuItems;  }  public JCheckBoxMenuItem getTableColumnMenuItem(LogTableColumn column) {    return getLogTableColumnMenuItem(column);  }  public CategoryExplorerTree getCategoryExplorerTree() {    return _categoryExplorerTree;  }  // Added in version 1.2 - gets the value of the NDC text filter  // This value is set back to null each time the Monitor is initialized.  public String getNDCTextFilter() {    return _NDCTextFilter;  }  // Added in version 1.2 - sets the NDC Filter based on  // a String passed in by the user.  This value is persisted  // in the XML Configuration file.  public void setNDCLogRecordFilter(String textFilter) {    _table.getFilteredLogTableModel().        setLogRecordFilter(createNDCLogRecordFilter(textFilter));  }  //--------------------------------------------------------------------------  //   Protected Methods:  //--------------------------------------------------------------------------  protected void setSearchText(String text) {    _searchText = text;  }  // Added in version 1.2 - Sets the text filter for the NDC  protected void setNDCTextFilter(String text) {    // if no value is set, set it to a blank string    // otherwise use the value provided    if (text == null) {      _NDCTextFilter = "";    } else {      _NDCTextFilter = text;    }  }  // Added in version 1.2 - Uses a different filter that sorts  // based on an NDC string passed in by the user.  If the string  // is null or is an empty string, we do nothing.  protected void sortByNDC() {    String text = _NDCTextFilter;    if (text == null || text.length() == 0) {      return;    }    // Use new NDC filter    _table.getFilteredLogTableModel().        setLogRecordFilter(createNDCLogRecordFilter(text));  }  protected void findSearchText() {    String text = _searchText;    if (text == null || text.length() == 0) {      return;    }    int startRow = getFirstSelectedRow();    int foundRow = findRecord(        startRow,        text,        _table.getFilteredLogTableModel().getFilteredRecords()    );    selectRow(foundRow);  }  protected int getFirstSelectedRow() {    return _table.getSelectionModel().getMinSelectionIndex();  }  protected void selectRow(int foundRow) {    if (foundRow == -1) {      String message = _searchText + " not found.";      JOptionPane.showMessageDialog(          _logMonitorFrame,          message,          "Text not found",          JOptionPane.INFORMATION_MESSAGE      );      return;    }    LF5SwingUtils.selectRow(foundRow, _table, _logTableScrollPane);  }  protected int findRecord(      int startRow,      String searchText,      List records      ) {    if (startRow < 0) {      startRow = 0; // start at first element if no rows are selected    } else {      startRow++; // start after the first selected row    }    int len = records.size();    for (int i = startRow; i < len; i++) {      if (matches((LogRecord) records.get(i), searchText)) {        return i; // found a record      }    }    // wrap around to beginning if when we reach the end with no match    len = startRow;    for (int i = 0; i < len; i++) {      if (matches((LogRecord) records.get(i), searchText)) {        return i; // found a record      }    }    // nothing found    return -1;  }  /**   * Check to see if the any records contain the search string.   * Searching now supports NDC messages and date.   */  protected boolean matches(LogRecord record, String text) {    String message = record.getMessage();    String NDC = record.getNDC();

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
91精品一区二区三区在线观看| 国产精品三级在线观看| 欧美xxx久久| 亚洲欧美国产77777| 成人涩涩免费视频| 欧美日韩日日骚| 中文字幕va一区二区三区| 天堂成人国产精品一区| 成人免费福利片| 欧美大片一区二区| 午夜激情一区二区三区| 91一区二区三区在线观看| 国产欧美精品区一区二区三区 | 色哟哟一区二区三区| 精品成a人在线观看| 亚洲成人综合网站| av电影在线观看完整版一区二区| 日韩你懂的在线观看| 亚洲成av人片www| 91传媒视频在线播放| 亚洲乱码一区二区三区在线观看| 国产精品亚洲视频| 亚洲精品在线一区二区| 日本视频在线一区| 欧美浪妇xxxx高跟鞋交| 一区二区三区在线观看视频| 91在线观看下载| 中文字幕一区二区三区不卡在线 | 精品久久久久久无| 日韩中文字幕区一区有砖一区| 日本黄色一区二区| 一区二区三区欧美在线观看| 91久久线看在观草草青青| **性色生活片久久毛片| 色综合欧美在线视频区| 国产精品美女一区二区在线观看| 国产盗摄一区二区| 国产欧美日韩不卡| 粉嫩aⅴ一区二区三区四区| 久久婷婷综合激情| 国产精品一区二区三区网站| 久久综合色鬼综合色| 激情综合色综合久久综合| 日韩欧美视频一区| 韩日av一区二区| 久久九九99视频| www.亚洲国产| 一区二区三区在线影院| 欧美日韩中文字幕精品| 亚洲成a人片在线观看中文| 欧美久久久影院| 久久99精品久久久久久动态图| 欧美mv日韩mv国产网站| 国产91在线观看| 国产精品福利一区| 欧美色综合网站| 久久草av在线| 亚洲欧洲日韩在线| 欧美制服丝袜第一页| 蜜臀av性久久久久蜜臀aⅴ四虎 | 国产高清成人在线| 综合色中文字幕| 欧美精品三级日韩久久| 国产在线国偷精品免费看| 国产精品情趣视频| 欧美男女性生活在线直播观看| 精品一区二区在线免费观看| 中文字幕亚洲一区二区av在线| 欧美在线小视频| 久久国产人妖系列| 一区二区三区四区乱视频| 日韩免费观看高清完整版在线观看 | 国产乱码精品一区二区三区av | 麻豆高清免费国产一区| 国产午夜精品福利| 欧美吞精做爰啪啪高潮| 国产91精品露脸国语对白| 亚洲国产精品麻豆| 久久九九国产精品| 6080yy午夜一二三区久久| 国产成人在线视频免费播放| 亚洲成人自拍网| 国产精品视频一二三| 3d动漫精品啪啪一区二区竹菊| 高清不卡在线观看| 免费人成精品欧美精品| 1000部国产精品成人观看| 日韩免费成人网| 欧美午夜寂寞影院| aaa国产一区| 国产成人精品亚洲日本在线桃色 | 国产成人丝袜美腿| 日韩精品1区2区3区| 亚洲人成精品久久久久| 久久久国产午夜精品| 欧美日韩国产免费| 97se亚洲国产综合在线| 国产福利一区在线| 日韩av在线播放中文字幕| 亚洲精品视频在线| 欧美极品美女视频| 精品sm在线观看| 日韩一区和二区| 欧美一区二区播放| 欧美日韩激情一区二区三区| 在线亚洲免费视频| 一本一道久久a久久精品| 成人精品免费看| 国产精品亚洲а∨天堂免在线| 麻豆精品国产传媒mv男同| 婷婷久久综合九色国产成人| 夜夜操天天操亚洲| 一区二区三区四区蜜桃| 一区二区三区蜜桃网| 一区二区在线免费| 一区二区三区国产精华| 亚洲综合激情网| 亚洲国产一区二区a毛片| 亚洲精品亚洲人成人网在线播放| 中文字幕日韩一区| 亚洲蜜臀av乱码久久精品| 自拍av一区二区三区| 中文字幕亚洲不卡| 亚洲综合一二区| 午夜精品影院在线观看| 天天综合色天天| 久久精品999| 粉嫩av一区二区三区| 91在线播放网址| 在线视频中文字幕一区二区| 欧美日韩成人在线一区| 日韩欧美一二区| 久久精品人人爽人人爽| 中文乱码免费一区二区| 亚洲人吸女人奶水| 午夜精品久久久| 韩国中文字幕2020精品| 99久久久精品| 欧美日韩一区成人| 精品国产髙清在线看国产毛片| 久久久久99精品一区| 综合久久久久久| 天堂午夜影视日韩欧美一区二区| 蜜臀av亚洲一区中文字幕| 国产成都精品91一区二区三| 在线观看欧美精品| 精品国产制服丝袜高跟| 中文字幕一区二区三区不卡在线 | 亚洲女厕所小便bbb| 亚洲18色成人| 国产成人综合网| 欧美系列日韩一区| 亚洲精品一区二区在线观看| 亚洲三级久久久| 久久97超碰国产精品超碰| av午夜一区麻豆| 91精品婷婷国产综合久久性色| 国产色产综合色产在线视频| 亚洲香肠在线观看| 国产一区二区精品久久| 欧美中文字幕亚洲一区二区va在线 | 人人狠狠综合久久亚洲| 成人av动漫网站| 日韩欧美专区在线| 亚洲男人都懂的| 麻豆精品国产传媒mv男同| 在线一区二区观看| 国产日韩精品视频一区| 日韩高清电影一区| 99精品国产一区二区三区不卡| 欧美一区二区视频在线观看| 综合网在线视频| 国产成人精品aa毛片| 日韩欧美一区在线观看| 亚洲精品伦理在线| 懂色av一区二区三区免费看| 日韩免费高清av| 日韩成人伦理电影在线观看| 91在线观看视频| 国产精品丝袜久久久久久app| 免费成人av资源网| 欧美久久久久久久久中文字幕| 亚洲色图欧洲色图婷婷| 成人免费看视频| 久久精品亚洲精品国产欧美| 麻豆精品一区二区av白丝在线| 欧美美女喷水视频| 亚洲一二三区不卡| 91丨porny丨首页| 国产精品家庭影院| 国产高清亚洲一区| 国产无一区二区| 国产福利一区二区三区视频在线| 日韩欧美三级在线| 美女视频黄 久久| 日韩午夜在线影院| 蜜桃精品在线观看| 欧美一级黄色片| 蜜臀av一级做a爰片久久| 欧美一区二区三区四区五区 |