Package mydatagenerator.init

Examples of mydatagenerator.init.Log4jManager


         /* Initialize and Enable the logging system */ 
         if(e.getActionCommand().equals("Enable"))
         {      
           if(this.logConfigurationPanel.getEnableLogCheckBox().isSelected() && !this.logConfigurationPanel.getOutLogFileField().getText().equalsIgnoreCase(""))
           {
              Log4jManager log4jManager = new Log4jManager();  
              
            //set some logging system properties: the chosen path to the output log file and the log level
            String logLevel = (String) this.logConfigurationPanel.getLogLevelCombo().getSelectedItem();
            log4jManager.initializeLogging(this.logConfigurationPanel.getOutLogFileField().getText()+File.separator+Log4jManager.OUTPUT_FILENAME,logLevel);
           
            this.logConfigurationPanel.getMessageLabel().setForeground(Color.GREEN);
            this.logConfigurationPanel.getMessageLabel().setFont(new Font("Serif", Font.BOLD, 15));
            this.logConfigurationPanel.getMessageLabel().setText("Logging enabled successfully !");
           
View Full Code Here

TOP

Related Classes of mydatagenerator.init.Log4jManager

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.