Class FusekiLogging

java.lang.Object
org.apache.jena.fuseki.system.FusekiLogging

public class FusekiLogging extends Object
FusekiLogging.

This applies to Fuseki run from the command line, as a combined jar and as an embedded server.

This does not apply to Fuseki running in Tomcat where it uses the servlet 3.0 mechanism described in Log4j2 manual (webapp). See FusekiServerEnvironmentInit.

  • Field Details

    • envLogLoggingProperty

      public static String envLogLoggingProperty
    • logLoggingProperty

      public static String logLoggingProperty
    • log4j2_configurationFile

      public static final String log4j2_configurationFile
      See Also:
    • log4j2_web_configuration

      public static final String log4j2_web_configuration
      See Also:
  • Constructor Details

    • FusekiLogging

      public FusekiLogging()
  • Method Details

    • markInitialized

      public static void markInitialized(boolean isInitialized)
      Mark whether logging is considered "initialized". Some external factor (e.g. log4j2 webapp context-param "log4jConfiguration") may mean logging will be initialized some other way.

      Call this with argument false if the code wants to re-initialize the logging otherwise calls of setLogging will be no-ops.

    • setLogging

      public static void setLogging()
      Set up logging.
    • setLogging

      public static void setLogging(boolean logLoggingSetup)
      Set up logging.
    • hasInitialized

      public static boolean hasInitialized()
    • setLogging

      public static void setLogging(Path extraDir, boolean logLoggingSetup)
      Set up logging. Allow an extra location. This may be null.
      Parameters:
      extraDir -
      logLoggingSetup - If true, tracing logging setup.
    • resetLogging

      public static void resetLogging(String configString)