Class LogFactory

    • Constructor Detail

      • LogFactory

        public LogFactory()
    • Method Detail

      • getInstance

        public LogEngine getInstance​(Class<?> clazz)
        Convenience method to derive a name from the specified class and call getInstance(String) with it.
        Parameters:
        clazz - Class for which a suitable Log name will be derived
        Returns:
        The current log engine
      • getInstance

        public LogEngine getInstance​(String name)

        Construct (if necessary) and return a Log instance, using the factory's current set of configuration attributes.

        NOTE - Depending upon the implementation of the LogFactory you are using, the Log instance you are returned may or may not be local to the current application, and may or may not be returned again on a subsequent call with the same name argument.

        Parameters:
        name - Logical name of the Log instance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)
        Returns:
        the log engine
      • createInstance

        public abstract LogEngine createInstance​(String name)

        Construct and return a Log instance, using the factory's current set of configuration attributes.

        NOTE - Depending upon the implementation of the LogFactory you are using, the Log instance you are returned may or may not be local to the current application, and may or may not be returned again on a subsequent call with the same name argument.

        Parameters:
        name - Logical name of the Log instance to be returned (the meaning of this name is only known to the underlying logging implementation that is being wrapped)
        Returns:
        the log engine
      • setDefaultLevel

        public void setDefaultLevel​(Log.LEVEL level)
      • getDefaultLevel

        public Log.LEVEL getDefaultLevel()
      • setLevelMapper

        public void setLevelMapper​(LevelMapper levelMapper)
      • setParameterMapper

        public void setParameterMapper​(ParameterMapper parameterMapper)
      • getMaxMessageSize

        public int getMaxMessageSize()
      • setMaxMessageSize

        public void setMaxMessageSize​(int max)