Autopsy
4.19.0
Graphical digital forensics platform for The Sleuth Kit and other tools.
|
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, Logger > | loggers = new HashMap<>() |
static final String | NEWLINE = System.lineSeparator() |
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 ApplicationLoggers.java.
|
private |
Prevents instantiation of this utility class.
Definition at line 100 of file ApplicationLoggers.java.
|
static |
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.
Definition at line 57 of file ApplicationLoggers.java.
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.
|
staticprivate |
Definition at line 46 of file ApplicationLoggers.java.
Referenced by org.sleuthkit.autopsy.apputils.ApplicationLoggers.getLogger().
|
staticprivate |
Definition at line 45 of file ApplicationLoggers.java.
Referenced by org.sleuthkit.autopsy.apputils.ApplicationLoggers.getLogger().
|
staticprivate |
Definition at line 48 of file ApplicationLoggers.java.
|
staticprivate |
Definition at line 47 of file ApplicationLoggers.java.
Referenced by org.sleuthkit.autopsy.apputils.ApplicationLoggers.getLogger().
Copyright © 2012-2021 Basis Technology. Generated on: Fri Aug 6 2021
This work is licensed under a
Creative Commons Attribution-Share Alike 3.0 United States License.