Added TeeOutputStream, JTextAreaOutputStream and TetAreaAppender using EnhancedPatternLayout so that the System.out and System.err streams appear both in the ProcessingPanel text area and in the console. Replaced System.out and System.err with log4j logging statements. Added the debugButton and infoButton to the GUI so that the user can select the debugging level at run time. This commit should be coordinated with the changes in maptools.
One of the beneficial effects of these changes is that the diagnostic info in the ProcessingPanel tet area is much easier to understand - especially when debug level of info is selected.
Added TeeOutputStream so that System.out and System.err messages can be sent to the JTextArea in ProcessingPanel and to the console.
ProcessingPanel.java
Added Tee output streams.
Changed the constructor to require a LayoutManager
Set the DefaultCaret to ALWAYS_UPDATE
Configured log4j TextAreaAppender programatically using EnhancedPatternLayout
Rewrote redirectOutputSTreams using TeeOutputStream
Changes some System.out.println to logger.info
pom.xml
changed source of onejar-maven-plugin
log4j.properties
Changed rootLogger level to INFO
InstallManager.java
Added logging
Initialized ProcessingPanel with BorderLayout
Added infoButton, debugButton and loggingPanel to permit user to select the debug level at run time.
Used the system clock to time chart processing.
Added TeeOutputStream, JTextAreaOutputStream and TetAreaAppender using EnhancedPatternLayout so that the System.out and System.err streams appear both in the ProcessingPanel text area and in the console. Replaced System.out and System.err with log4j logging statements. Added the debugButton and infoButton to the GUI so that the user can select the debugging level at run time. This commit should be coordinated with the changes in maptools.
One of the beneficial effects of these changes is that the diagnostic info in the ProcessingPanel tet area is much easier to understand - especially when debug level of info is selected.
Added TeeOutputStream so that System.out and System.err messages can be sent to the JTextArea in ProcessingPanel and to the console.
ProcessingPanel.java
Added Tee output streams. Changed the constructor to require a LayoutManager Set the DefaultCaret to ALWAYS_UPDATE Configured log4j TextAreaAppender programatically using EnhancedPatternLayout Rewrote redirectOutputSTreams using TeeOutputStream Changes some System.out.println to logger.info
pom.xml changed source of onejar-maven-plugin
log4j.properties Changed rootLogger level to INFO
InstallManager.java Added logging Initialized ProcessingPanel with BorderLayout Added infoButton, debugButton and loggingPanel to permit user to select the debug level at run time. Used the system clock to time chart processing.