Class FusekiLogging


  • public class FusekiLogging
    extends java.lang.Object
    FusekiLogging.

    This applies to Fuseki run from the command line and embedded.

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

    • Constructor Summary

      Constructors 
      Constructor Description
      FusekiLogging()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean hasInitialized()  
      static void markInitialized​(boolean isInitialized)
      Mark whether logging is considered "initialized".
      static void resetLogging​(java.lang.String configString)  
      static void setLogging()
      Set up logging - standalone and war packaging
      static void setLogging​(java.nio.file.Path extraDir)
      Set up logging.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • log4j2_configurationFile

        public static final java.lang.String log4j2_configurationFile
        See Also:
        Constant Field Values
      • log4j2_web_configuration

        public static final java.lang.String log4j2_web_configuration
        See Also:
        Constant Field Values
    • Constructor Detail

      • FusekiLogging

        public FusekiLogging()
    • Method Detail

      • 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 - standalone and war packaging
      • hasInitialized

        public static boolean hasInitialized()
      • setLogging

        public static void setLogging​(java.nio.file.Path extraDir)
        Set up logging. Allow an extra location (string directory name without trailing "/"). This may be null
        Parameters:
        extraDir -
      • resetLogging

        public static void resetLogging​(java.lang.String configString)