Package org.sleuthkit.autopsy.coreutils

Examples of org.sleuthkit.autopsy.coreutils.Logger.log()


            if (skVersion == null) {
                throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.tskVerStringNull.msg"));
            } else if (skVersion.length() == 0) {
                throw new Exception(NbBundle.getMessage(this.getClass(), "Installer.exception.taskVerStringBang.msg"));
            } else {
                logger.log(Level.CONFIG, "Sleuth Kit Version: {0}", skVersion); //NON-NLS
            }

        } catch (Exception e) {
            logger.log(Level.SEVERE, "Error calling Sleuth Kit library (test call failed)", e); //NON-NLS
View Full Code Here


            } else {
                logger.log(Level.CONFIG, "Sleuth Kit Version: {0}", skVersion); //NON-NLS
            }

        } catch (Exception e) {
            logger.log(Level.SEVERE, "Error calling Sleuth Kit library (test call failed)", e); //NON-NLS


            // Normal error box log handler won't be loaded yet, so show error here.
            final Component parentComponent = null; // Use default window frame.
            final String message = NbBundle.getMessage(this.getClass(), "Installer.tskLibErr.msg", e.toString());
View Full Code Here

            if (cleanupTask != null) {
                try {
                    cleanupTask.cleanup();
                } catch (Exception ex) {
                    Logger logger = Logger.getLogger(AddImageWizardChooseDataSourcePanel.class.getName());
                    logger.log(Level.WARNING, "Error cleaning up image task", ex); //NON-NLS
                } finally {
                    cleanupTask.disable();
                }
            }
        } catch (Exception e) {
View Full Code Here

                        if (newSelection != null) {
                            try {
                                sourceEm.setExploredContextAndSelection(newSelection, new Node[]{newSelection});
                            } catch (PropertyVetoException ex) {
                                Logger logger = Logger.getLogger(DataResultFilterNode.class.getName());
                                logger.log(Level.WARNING, "Error: can't open the selected directory.", ex); //NON-NLS
                            }
                        }
                    }
                }
            };
View Full Code Here

                public void actionPerformed(ActionEvent e) {
                    try {
                        sourceEm.setSelectedNodes(new Node[]{parentNode});
                    } catch (PropertyVetoException ex) {
                        Logger logger = Logger.getLogger(DataResultFilterNode.class.getName());
                        logger.log(Level.WARNING, "Error: can't open the parent directory.", ex); //NON-NLS
                    }
                }
            };
        }
    }
View Full Code Here

            return IngestModule.ProcessResult.OK;

        } catch (TskCoreException ex) {
            IngestServices ingestServices = IngestServices.getInstance();
            Logger logger = ingestServices.getLogger(SampleIngestModuleFactory.getModuleName());
            logger.log(Level.SEVERE, "File query failed", ex);
            return IngestModule.ProcessResult.ERROR;
        }
    }
}
View Full Code Here

                        attrId = sleuthkitCase.addAttrType("ATTR_SAMPLE", "Sample Attribute");
                    }
                } catch (TskCoreException ex) {
                    IngestServices ingestServices = IngestServices.getInstance();
                    Logger logger = ingestServices.getLogger(SampleIngestModuleFactory.getModuleName());
                    logger.log(Level.SEVERE, "Failed to create blackboard attribute", ex);
                    attrId = -1;
                    throw new IngestModuleException(ex.getLocalizedMessage());
                }
            }
        }
View Full Code Here

            return IngestModule.ProcessResult.OK;

        } catch (TskCoreException ex) {
            IngestServices ingestServices = IngestServices.getInstance();
            Logger logger = ingestServices.getLogger(SampleIngestModuleFactory.getModuleName());
            logger.log(Level.SEVERE, "Error processing file (id = " + file.getId() + ")", ex);
            return IngestModule.ProcessResult.ERROR;
        }
    }

    @Override
View Full Code Here

            // fired by AddImageAction.runCleanupTasks() after the wizard closes
            try {
                cleanup();
            } catch (Exception ex) {
                Logger logger = Logger.getLogger(this.getClass().getName());
                logger.log(Level.WARNING, "Error cleaning up from wizard.", ex); //NON-NLS
            } finally {
                disable(); // cleanup tasks should only run once.
            }
        }
View Full Code Here

                    IngestServices.getInstance().postMessage(IngestMessage.createErrorMessage(moduleName, "External Results Import Error", errorInfo.getMessage()));
                }
                progressBar.progress(2);
            } catch (ParserConfigurationException | TransformerException | IOException ex) {
                Logger logger = IngestServices.getInstance().getLogger(moduleName);
                logger.log(Level.SEVERE, "Failed to simulate analysis and results import", ex)//NON-NLS
                return ProcessResult.ERROR;
            }
        }
        return ProcessResult.OK;
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.