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

Static Public Member Functions

synchronized static Logger getLogger (String logName)

Private Member Functions

 ApplicationLoggers ()

Static Private Attributes

static final int LOG_FILE_COUNT = 10
static final int LOG_SIZE = 50000000
static final Map< String, Loggerloggers = new HashMap<>()
static final String NEWLINE = System.lineSeparator()

Detailed Description

A utility that creates and stores application loggers.

TODO (Jira-7175): This code is the third copy of code that originally appeared in org.sleuthkit.autopsy.coreutils.Logger. The second copy is in org.sleuthkit.autopsy.experimental.autoingest.AutoIngestSystemLogger. This class should allow the replacement of AutoIngestSystemLogger and the elimination of duplicate code in coreutils.Logger through delegation (maintaining the public API for coreutils.Logger).

Definition at line 43 of file

Constructor & Destructor Documentation

org.sleuthkit.autopsy.apputils.ApplicationLoggers.ApplicationLoggers ( )

Prevents instantiation of this utility class.

Definition at line 100 of file

Member Function Documentation

synchronized static Logger org.sleuthkit.autopsy.apputils.ApplicationLoggers.getLogger ( String  logName)

Gets the logger for a given application log file. The log file will be located in the var/log directory of the platform user directory and will have a name of the form [log name].log.

The logger.

Definition at line 57 of file

References org.sleuthkit.autopsy.coreutils.PlatformUtil.getLogFileEncoding(), org.sleuthkit.autopsy.coreutils.Logger.getLogger(), org.sleuthkit.autopsy.coreutils.PlatformUtil.getUserDirectory(), org.sleuthkit.autopsy.apputils.ApplicationLoggers.LOG_FILE_COUNT, org.sleuthkit.autopsy.apputils.ApplicationLoggers.LOG_SIZE, and org.sleuthkit.autopsy.apputils.ApplicationLoggers.NEWLINE.

Member Data Documentation

final int org.sleuthkit.autopsy.apputils.ApplicationLoggers.LOG_FILE_COUNT = 10
final int org.sleuthkit.autopsy.apputils.ApplicationLoggers.LOG_SIZE = 50000000
final Map<String, Logger> org.sleuthkit.autopsy.apputils.ApplicationLoggers.loggers = new HashMap<>()

Definition at line 48 of file

final String org.sleuthkit.autopsy.apputils.ApplicationLoggers.NEWLINE = System.lineSeparator()

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

Copyright © 2012-2022 Basis Technology. Generated on: Tue Jun 27 2023
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.