Class ConsoleFactory

  • All Implemented Interfaces:
    IBase

    public class ConsoleFactory
    extends LogFactory
    • Constructor Detail

      • ConsoleFactory

        public ConsoleFactory()
      • ConsoleFactory

        public ConsoleFactory​(PrintStream stream)
    • Method Detail

      • createInstance

        public LogEngine createInstance​(String name)
        Description copied from class: LogFactory

        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.

        Specified by:
        createInstance in class LogFactory
        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
      • printTime

        public String printTime()
      • setLevel

        public void setLevel​(Log.LEVEL level)