Package ghidra.framework

# Class LoggingInitialization

java.lang.Object
ghidra.framework.LoggingInitialization

public class LoggingInitialization extends Object

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final String`
  `LOG4J2_CONFIGURATION_PROPERTY`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `LoggingInitialization()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static File`
  `getApplicationLogFile()`
  Returns the default file used for logging messages.
  `static File`
  `getScriptLogFile()`
  Returns the default file used for logging messages.
  `static void`
  `initializeLoggingSystem()`
  `static void`
  `reinitialize()`
  Signals to reload the log settings from the log configuration files in use.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LOG4J2_CONFIGURATION_PROPERTY

    public static final String LOG4J2_CONFIGURATION_PROPERTY
    See Also:
      - Constant Field Values

- ## Constructor Details

  - ### LoggingInitialization

    public LoggingInitialization()

- ## Method Details

  - ### initializeLoggingSystem

    public static void initializeLoggingSystem()

  - ### getApplicationLogFile

    public static File getApplicationLogFile()
    Returns the default file used for logging messages.
    Returns:
      the file

  - ### getScriptLogFile

    public static File getScriptLogFile()
    Returns the default file used for logging messages.
    Returns:
      the file

  - ### reinitialize

    public static void reinitialize()
    Signals to reload the log settings from the log configuration files in use. This is useful for tests that wish to temporarily change log settings, restoring them when done.

    This method will do nothing if `initializeLoggingSystem()` has not been called.