Package com.log4jviewer.logfile

Examples of com.log4jviewer.logfile.LogFileLoader


                // init log file pattern
                IPreferenceStore store = Activator.getInstance().getPreferenceStore();
                String logFilePattern = store.getString(DefaultPreferences.LogFilePreferences.getId());
                logger.debug("Log file pattern: {} was loaded.", logFilePattern);

                LogFileLoader logFileLoader = new LogFileLoader();
                logFileLoader.addListener(logView.getLogList());
                logFileLoader.load(selectedFile, logFilePattern);
                logFileLoader.removeListener(logView.getLogList());
            }
        } catch (FileNotFoundException e) {
            String errorMessage = "Log file wasn't found!";
            logView.getErrorManager().addError(errorMessage);
            logger.error(errorMessage, e);
View Full Code Here

TOP

Related Classes of com.log4jviewer.logfile.LogFileLoader

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.