Class SystemOutLoggingTool

  • All Implemented Interfaces:
    ILoggingTool

    public class SystemOutLoggingTool
    extends Object
    implements ILoggingTool
    Deprecated.
    should not be used directly
    Implementation of the ILoggingTool interface that sends output to the System.err channel.
    Source code:
    main
    Belongs to CDK module:
    core
    • Constructor Detail

      • SystemOutLoggingTool

        public SystemOutLoggingTool​(Class<?> classInst)
        Deprecated.
        Constructs a ILoggingTool which produces log lines indicating them to be for the given Class.
        Parameters:
        classInst - Class from which the log messages originate
    • Method Detail

      • dumpSystemProperties

        public void dumpSystemProperties()
        Deprecated.
        Outputs system properties for the operating system and the java version. More specifically: os.name, os.version, os.arch, java.version and java.vendor.
        Specified by:
        dumpSystemProperties in interface ILoggingTool
      • setStackLength

        public void setStackLength​(int length)
        Deprecated.
        Sets the number of StackTraceElements to be printed in DEBUG mode when calling debug(Throwable). The default value is DEFAULT_STACK_LENGTH.
        Specified by:
        setStackLength in interface ILoggingTool
        Parameters:
        length - the new stack length
        See Also:
        ILoggingTool.DEFAULT_STACK_LENGTH
      • dumpClasspath

        public void dumpClasspath()
        Deprecated.
        Outputs the system property for java.class.path.
        Specified by:
        dumpClasspath in interface ILoggingTool
      • debug

        public void debug​(Object object)
        Deprecated.
        Shows DEBUG output for the Object. If the object is an instanceof Throwable it will output the trace. Otherwise it will use the toString() method.
        Specified by:
        debug in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
      • debug

        public void debug​(Object object,
                          Object... objects)
        Deprecated.
        Shows DEBUG output for the given Object's. It uses the toString() method to concatenate the objects.
        Specified by:
        debug in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
        objects - Object... to apply toString() too and output
      • error

        public void error​(Object object)
        Deprecated.
        Shows ERROR output for the Object. It uses the toString() method.
        Specified by:
        error in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
      • error

        public void error​(Object object,
                          Object... objects)
        Deprecated.
        Shows ERROR output for the given Object's. It uses the toString() method to concatenate the objects.
        Specified by:
        error in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
        objects - Object... to apply toString() too and output
      • fatal

        public void fatal​(Object object)
        Deprecated.
        Shows FATAL output for the Object. It uses the toString() method.
        Specified by:
        fatal in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
      • info

        public void info​(Object object)
        Deprecated.
        Shows INFO output for the Object. It uses the toString() method.
        Specified by:
        info in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
      • info

        public void info​(Object object,
                         Object... objects)
        Deprecated.
        Shows INFO output for the given Object's. It uses the toString() method to concatenate the objects.
        Specified by:
        info in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
        objects - Object... to apply toString() too and output
      • warn

        public void warn​(Object object)
        Deprecated.
        Shows WARN output for the Object. It uses the toString() method.
        Specified by:
        warn in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
      • warn

        public void warn​(Object object,
                         Object... objects)
        Deprecated.
        Shows WARN output for the given Object's. It uses the toString() method to concatenate the objects.
        Specified by:
        warn in interface ILoggingTool
        Parameters:
        object - Object to apply toString() too and output
        objects - Object... to apply toString() too and output
      • isDebugEnabled

        public boolean isDebugEnabled()
        Deprecated.
        Use this method for computational demanding debug info. For example:
         if (logger.isDebugEnabled()) {
           logger.info("The 1056389822th prime that is used is: ",
                        calculatePrime(1056389822));
         }
         
        Specified by:
        isDebugEnabled in interface ILoggingTool
        Returns:
        true, if debug is enabled
      • setDebugEnabled

        @Deprecated
        protected void setDebugEnabled​(boolean enabled)
        Deprecated.
        Protected method which must not be used, except for testing purposes.