Class JavaLookup

    • Field Summary

      • Fields inherited from interface org.apache.logging.log4j.core.lookup.StrLookup

        CATEGORY
    • Constructor Summary

      Constructors 
      Constructor Description
      JavaLookup()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getHardware()
      Accessible through the Lookup key hw.
      java.lang.String getLocale()
      Accessible through the Lookup key locale.
      java.lang.String getOperatingSystem()
      Accessible through the Lookup key os.
      java.lang.String getRuntime()
      Accessible through the Lookup key runtime.
      java.lang.String getVirtualMachine()
      Accessible through the Lookup key vm.
      java.lang.String lookup​(LogEvent event, java.lang.String key)
      Looks up the value of the environment variable.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • JavaLookup

        public JavaLookup()
    • Method Detail

      • getHardware

        public java.lang.String getHardware()
        Accessible through the Lookup key hw.
        Returns:
        hardware processor information.
      • getLocale

        public java.lang.String getLocale()
        Accessible through the Lookup key locale.
        Returns:
        system locale and file encoding information.
      • getOperatingSystem

        public java.lang.String getOperatingSystem()
        Accessible through the Lookup key os.
        Returns:
        operating system information.
      • getRuntime

        public java.lang.String getRuntime()
        Accessible through the Lookup key runtime.
        Returns:
        Java Runtime Environment information.
      • getVirtualMachine

        public java.lang.String getVirtualMachine()
        Accessible through the Lookup key vm.
        Returns:
        Java Virtual Machine information.
      • lookup

        public java.lang.String lookup​(LogEvent event,
                                       java.lang.String key)
        Looks up the value of the environment variable.
        Parameters:
        event - The current LogEvent (is ignored by this StrLookup).
        key - the key to be looked up, may be null
        Returns:
        The value of the environment variable.