Autopsy  3.1
Graphical digital forensics platform for The Sleuth Kit and other tools.
Static Public Member Functions | Private Member Functions | Static Private Member Functions | Static Private Attributes | List of all members
org.sleuthkit.autopsy.coreutils.Logger Class Reference

Inherits Logger.

Static Public Member Functions

static void setLogDirectory (String directoryPath)
 
static Logger getLogger (String name)
 
static Logger getLogger (String name, String resourceBundleName)
 

Private Member Functions

 Logger (String name, String resourceBundleName)
 

Static Private Member Functions

static FileHandler createFileHandler (String logDirectory, String fileName)
 

Static Private Attributes

static final String LOG_ENCODING = PlatformUtil.getLogFileEncoding()
 
static final int LOG_SIZE = 0
 
static final int LOG_FILE_COUNT = 10
 
static final String LOG_WITHOUT_STACK_TRACES = "autopsy.log"
 
static final String LOG_WITH_STACK_TRACES = "autopsy_traces.log"
 
static final Handler console = new java.util.logging.ConsoleHandler()
 
static final Object fileHandlerLock = new Object()
 
static FileHandler userFriendlyLogFile = createFileHandler(PlatformUtil.getLogDirectory(), LOG_WITHOUT_STACK_TRACES)
 
static FileHandler developersLogFile = createFileHandler(PlatformUtil.getLogDirectory(), LOG_WITH_STACK_TRACES)
 

Detailed Description

Autopsy specialization of the Java Logger class with custom file handlers.

Definition at line 33 of file Logger.java.

Constructor & Destructor Documentation

org.sleuthkit.autopsy.coreutils.Logger.Logger ( String  name,
String  resourceBundleName 
)
private

Member Function Documentation

static FileHandler org.sleuthkit.autopsy.coreutils.Logger.createFileHandler ( String  logDirectory,
String  fileName 
)
staticprivate
static Logger org.sleuthkit.autopsy.coreutils.Logger.getLogger ( String  name)
static

Factory method to retrieve a org.sleuthkit.autopsy.coreutils.Logger instance derived from java.util.logging.Logger. Hides the base class factory method.

Parameters
nameA name for the logger. This should be a dot-separated name and should normally be based on the package name or class name.
Returns
org.sleuthkit.autopsy.coreutils.Logger instance

Definition at line 131 of file Logger.java.

References org.sleuthkit.autopsy.coreutils.Logger.Logger().

Referenced by org.sleuthkit.autopsy.directorytree.ExplorerNodeActionVisitor.FileSystemDetails.actionPerformed(), org.sleuthkit.autopsy.modules.hashdatabase.AddContentToHashDbAction.AddContentToHashDbMenu.addFilesToHashSet(), org.sleuthkit.autopsy.actions.AddBlackboardArtifactTagAction.addTag(), org.sleuthkit.autopsy.actions.AddContentTagAction.addTag(), org.sleuthkit.autopsy.timeline.events.type.ArtifactEventType.AttributeEventDescription.buildEventDescription(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.closeHashDatabases(), org.sleuthkit.autopsy.datamodel.Reports.ReportNodeFactory.createKeys(), org.sleuthkit.autopsy.datamodel.Tags.TagNameNodeFactory.createKeys(), org.sleuthkit.autopsy.datamodel.ExtractedContent.TypeFactory.createKeys(), org.sleuthkit.autopsy.datamodel.Tags.ContentTagNodeFactory.createKeys(), org.sleuthkit.autopsy.datamodel.ExtractedContent.ArtifactFactory.createKeys(), org.sleuthkit.autopsy.datamodel.Tags.BlackboardArtifactTagNodeFactory.createKeys(), org.sleuthkit.autopsy.datamodel.Tags.TagTypeNodeFactory.createNodeForKey(), org.sleuthkit.autopsy.datamodel.BlackboardArtifactTagNode.createSheet(), org.sleuthkit.autopsy.actions.DeleteContentTagAction.doAction(), org.sleuthkit.autopsy.actions.DeleteBlackboardArtifactTagAction.doAction(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.HashDbIndexer.doInBackground(), org.sleuthkit.autopsy.coreutils.ExecUtil.execute(), org.sleuthkit.autopsy.directorytree.DataResultFilterNode.GetPopupActionsDisplayableItemNodeVisitor.findLinked(), org.sleuthkit.autopsy.modules.fileextmismatch.FileExtMismatchContextMenuActionsProvider.getActions(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.getConfigSettings(), org.sleuthkit.autopsy.ingest.IngestServices.getLogger(), org.sleuthkit.autopsy.casemodule.services.TagsManager.getPredefinedTagNames(), org.sleuthkit.autopsy.coreutils.JLnkParser.getStringAt(), org.sleuthkit.autopsy.actions.GetTagNameAndCommentDialog.GetTagNameAndCommentDialog(), org.sleuthkit.autopsy.actions.GetTagNameDialog.GetTagNameDialog(), org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesFromCurrentCase(), org.sleuthkit.autopsy.casemodule.services.TagsManager.getTagNamesFromTagsSettings(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.getUpdateableHashSets(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.HashSetTableModel.indexExists(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupModuleSettingsPanel.isHashDbIndexed(), org.sleuthkit.autopsy.coreutils.JLnkParser.JLnkParser(), org.sleuthkit.autopsy.coreutils.XMLUtil.loadDoc(), org.sleuthkit.autopsy.coreutils.MessageNotifyUtil.MessageType.loadIcon(), org.sleuthkit.autopsy.coreutils.ModuleSettings.makeConfigFile(), org.sleuthkit.autopsy.actions.GetTagNameDialog.okButtonActionPerformed(), org.sleuthkit.autopsy.directorytree.DataResultFilterNode.GetPreferredActionsDisplayableItemNodeVisitor.openChild(), org.sleuthkit.autopsy.directorytree.DataResultFilterNode.GetPreferredActionsDisplayableItemNodeVisitor.openParent(), org.sleuthkit.autopsy.report.ArtifactSelectionDialog.populateList(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.propertyChange(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.readHashSetsConfigurationFromDisk(), org.sleuthkit.autopsy.coreutils.ModuleSettings.removeProperty(), org.sleuthkit.autopsy.coreutils.XMLUtil.saveDoc(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.saveSettings(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.searchForFile(), org.sleuthkit.autopsy.timeline.TimeLineController.selectEventIDs(), org.sleuthkit.autopsy.timeline.TimeLineController.selectTimeAndType(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSetting(), org.sleuthkit.autopsy.coreutils.ModuleSettings.setConfigSettings(), org.sleuthkit.autopsy.modules.hashdatabase.HashLookupSettingsPanel.updateComponentsForSelection(), org.sleuthkit.autopsy.datamodel.Tags.TagNameNode.updateDisplayName(), org.sleuthkit.autopsy.datamodel.Tags.ContentTagTypeNode.updateDisplayName(), org.sleuthkit.autopsy.datamodel.Tags.BlackboardArtifactTagTypeNode.updateDisplayName(), org.sleuthkit.autopsy.datamodel.Installer.validate(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.writeHashDbsToDisk(), org.sleuthkit.autopsy.modules.hashdatabase.HashDbManager.writeHashSetConfigurationToDisk(), and org.sleuthkit.autopsy.coreutils.XMLUtil.xmlIsValid().

static Logger org.sleuthkit.autopsy.coreutils.Logger.getLogger ( String  name,
String  resourceBundleName 
)
static

Factory method to retrieve a org.sleuthkit.autopsy.coreutils.Logger instance derived from java.util.logging.Logger. Hides the base class factory method.

Parameters
nameA name for the logger. This should be a dot-separated name and should normally be based on the package name or class name.
resourceBundleName- name of ResourceBundle to be used for localizing messages for this logger. May be null if none of the messages require localization.
Returns
org.sleuthkit.autopsy.coreutils.Logger instance

Definition at line 147 of file Logger.java.

References org.sleuthkit.autopsy.coreutils.Logger.Logger().

static void org.sleuthkit.autopsy.coreutils.Logger.setLogDirectory ( String  directoryPath)
static

Sets the log directory where the log files will be written.

Parameters
directoryPathThe path to the desired log directory as a string.

Definition at line 108 of file Logger.java.

References org.sleuthkit.autopsy.coreutils.Logger.createFileHandler(), and org.sleuthkit.autopsy.coreutils.Logger.fileHandlerLock.

Referenced by org.sleuthkit.autopsy.casemodule.Case.changeCase().

Member Data Documentation

final Handler org.sleuthkit.autopsy.coreutils.Logger.console = new java.util.logging.ConsoleHandler()
staticprivate

Definition at line 40 of file Logger.java.

FileHandler org.sleuthkit.autopsy.coreutils.Logger.developersLogFile = createFileHandler(PlatformUtil.getLogDirectory(), LOG_WITH_STACK_TRACES)
staticprivate

Definition at line 43 of file Logger.java.

final Object org.sleuthkit.autopsy.coreutils.Logger.fileHandlerLock = new Object()
staticprivate
final String org.sleuthkit.autopsy.coreutils.Logger.LOG_ENCODING = PlatformUtil.getLogFileEncoding()
staticprivate

Definition at line 35 of file Logger.java.

final int org.sleuthkit.autopsy.coreutils.Logger.LOG_FILE_COUNT = 10
staticprivate

Definition at line 37 of file Logger.java.

final int org.sleuthkit.autopsy.coreutils.Logger.LOG_SIZE = 0
staticprivate

Definition at line 36 of file Logger.java.

final String org.sleuthkit.autopsy.coreutils.Logger.LOG_WITH_STACK_TRACES = "autopsy_traces.log"
staticprivate

Definition at line 39 of file Logger.java.

final String org.sleuthkit.autopsy.coreutils.Logger.LOG_WITHOUT_STACK_TRACES = "autopsy.log"
staticprivate

Definition at line 38 of file Logger.java.

FileHandler org.sleuthkit.autopsy.coreutils.Logger.userFriendlyLogFile = createFileHandler(PlatformUtil.getLogDirectory(), LOG_WITHOUT_STACK_TRACES)
staticprivate

Definition at line 42 of file Logger.java.


The documentation for this class was generated from the following file:

Copyright © 2012-2015 Basis Technology. Generated on: Mon Oct 19 2015
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.