19 package org.sleuthkit.autopsy.keywordsearch;
21 import java.beans.PropertyChangeListener;
22 import java.beans.PropertyChangeSupport;
23 import java.io.IOException;
24 import java.util.logging.FileHandler;
25 import java.util.logging.Level;
26 import java.util.logging.SimpleFormatter;
27 import org.openide.util.NbBundle;
42 private static final java.util.logging.Logger
tikaLogger = java.util.logging.
Logger.getLogger(
"Tika");
68 final int MAX_TIKA_LOG_FILES = 3;
70 0, MAX_TIKA_LOG_FILES);
71 tikaLogHandler.setFormatter(
new SimpleFormatter());
76 }
catch (IOException | SecurityException ex) {
77 logger.log(Level.SEVERE,
"Error setting up tika logging", ex);
83 throw new AssertionError();
86 static java.util.logging.Logger getTikaLogger() {
91 changeSupport.addPropertyChangeListener(NUM_FILES_CHANGE_EVT, l);
95 changeSupport.removePropertyChangeListener(l);
101 changeSupport.firePropertyChange(NUM_FILES_CHANGE_EVT, oldNum, newNum);
102 }
catch (Exception e) {
103 logger.log(Level.SEVERE,
"KeywordSearch listener threw exception", e);
106 "KeywordSearch.fireNumIdxFileChg.moduleErr.msg"),
static final Logger logger
static void fireNumIndexedFilesChange(Integer oldNum, Integer newNum)
static void addNumIndexedFilesChangeListener(PropertyChangeListener l)
static synchronized Server getServer()
Logger(String name, String resourceBundleName)
static final java.util.logging.Logger tikaLogger
static PropertyChangeSupport changeSupport
static final String NUM_FILES_CHANGE_EVT
static void removeNumIndexedFilesChangeListener(PropertyChangeListener l)
synchronized static Logger getLogger(String name)
static void show(String title, String message, MessageType type, ActionListener actionListener)