Package org.apache.log4j.lf5.viewer.categoryexplorer

Examples of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath


   * Loads a parses a log file running on a server.
   */
  protected boolean loadLogFile(URL url) {
    boolean ok = false;
    try {
      LogFileParser lfp = new LogFileParser(url.openStream());
      lfp.parse(this);
      ok = true;
    } catch (IOException e) {
      LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
          getBaseFrame(), "Error reading URL:" + url.getFile());
    }
View Full Code Here


   * Loads a parses a log file running on a server.
   */
  protected boolean loadLogFile(URL url) {
    boolean ok = false;
    try {
      LogFileParser lfp = new LogFileParser(url.openStream());
      lfp.parse(this);
      ok = true;
    } catch (IOException e) {
      LogFactor5ErrorDialog error = new LogFactor5ErrorDialog(
          getBaseFrame(), "Error reading URL:" + url.getFile());
    }
View Full Code Here

  protected void initComponents() {
    //
    // Configure the Frame.
    //
    ProductProperties props = ProductProperties.getInstance();

    _logMonitorFrame = new JFrame("LogFactor5");

    _logMonitorFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
View Full Code Here

  //--------------------------------------------------------------------------

  public LogFactor5AboutDialog(Frame owner) {
    super(owner, "About LogFactor5", true);

    ProductProperties props = ProductProperties.getInstance();

    setTitle("About LogFactor5");

    JPanel imagePanel = new JPanel();
    Resource aboutResource = new Resource("org/apache/log4j/lf5/viewer/images/" +
        "lf5_about.gif");
    URL aboutIconURL = aboutResource.getURL();
    ImageIcon aboutIcon = null;
    if (aboutIconURL != null) {
      aboutIcon = new ImageIcon(aboutIconURL);
    }

    JLabel imageLabel = new JLabel();

    if (aboutIcon != null) {
      imageLabel.setIcon(aboutIcon);
    }
    imagePanel.add(imageLabel);

    JPanel textPanel = new JPanel();
    textPanel.setLayout(new GridLayout(3, 1));


    int numberOfRows = 13;
    numberOfRows = 11; // we need less room for a registered user.
    JPanel mainPanel = new JPanel();
    mainPanel.setLayout(new GridLayout(numberOfRows, 1));
    JLabel aboutLF5 = new JLabel("LogFactor5 v" + props.getProductVersionNumber(), JLabel.CENTER);
    aboutLF5.setHorizontalAlignment(SwingConstants.CENTER);
    JLabel donate = new JLabel("Contributed by ThoughtWorks Inc.");
    donate.setHorizontalAlignment(SwingConstants.CENTER);
    mainPanel.add(aboutLF5);
    mainPanel.add(Box.createVerticalStrut(10));
View Full Code Here

    }
    configuration.configure(file);
    log.debug("Full Hibernate Plugin's Session Factory configuration file \""+file+"\" configured");
   
    String fileProperties = file.substring(1,file.length()).replace(".cfg", "").replace("xml", "properties");
    Resource resource = new Resource(fileProperties);
    if (resource.getURL()!=null) {
      String fullpath = resource.getURL().getPath().replace("%20", " ");
      FileInputStream fis = new FileInputStream(fullpath);
      Properties properties = new Properties();
      properties.load(fis);
      fis.close();
      configuration.addProperties(properties);
View Full Code Here

    ProductProperties props = ProductProperties.getInstance();

    setTitle("About LogFactor5");

    JPanel imagePanel = new JPanel();
    Resource aboutResource = new Resource("org/apache/log4j/lf5/viewer/images/" +
        "lf5_about.gif");
    URL aboutIconURL = aboutResource.getURL();
    ImageIcon aboutIcon = null;
    if (aboutIconURL != null) {
      aboutIcon = new ImageIcon(aboutIconURL);
    }
View Full Code Here

     */
    public static synchronized LogBrokerMonitor getDefaultMonitor()
    {
        if( null == c_defaultLogMonitor )
        {
            c_defaultLogMonitor = new LogBrokerMonitor( LogKitLogRecord.LOGKIT_LOGLEVELS );
            c_defaultLogMonitor.setFontSize( 12 );
            c_defaultLogMonitor.show();
        }

        return c_defaultLogMonitor;
View Full Code Here

   */
  protected static synchronized LogBrokerMonitor getDefaultInstance() {
    if (_defaultLogMonitor == null) {
      try {
        _defaultLogMonitor =
            new LogBrokerMonitor(LogLevel.getLog4JLevels());
        _finalizer = new AppenderFinalizer(_defaultLogMonitor);

        _defaultLogMonitor.setFrameSize(getDefaultMonitorWidth(),
            getDefaultMonitorHeight());
        _defaultLogMonitor.setFontSize(12);
View Full Code Here

     */
    public static synchronized LogBrokerMonitor getDefaultMonitor()
    {
        if( null == c_defaultLogMonitor )
        {
            c_defaultLogMonitor = new LogBrokerMonitor( LogKitLogRecord.LOGKIT_LOGLEVELS );
            c_defaultLogMonitor.setFontSize( 12 );
            c_defaultLogMonitor.show();
        }

        return c_defaultLogMonitor;
View Full Code Here

   * 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();

  }
View Full Code Here

TOP

Related Classes of org.apache.log4j.lf5.viewer.categoryexplorer.CategoryPath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.