Class ConsoleLog

java.lang.Object
com.mcpdbwizard.pub.GenericLog
com.mcpdbwizard.pub.ConsoleLog
All Implemented Interfaces:
LogInterface

public class ConsoleLog extends GenericLog implements LogInterface
This is a lightweight implementation of LogInterface that uses standard output for information messages and standard error for everything else. Requests for modal messages and logged messages are accepted and then ignored.

See LogInterface

Copyright 2003-2026 ATB Consultancy Services Ltd (formerly Orinda Software Ltd, Dublin, Ireland)

Version:
7
Author:
devteam@mcpdbwizard.com
  • Field Details

  • Constructor Details

    • ConsoleLog

      public ConsoleLog()
      Create an instance of ConsoleLog.
  • Method Details

    • writeMessage

      protected void writeMessage(String messageType, String messageText, boolean isModal, boolean isLogged)
      Format a message and write it to either Standard Output(INFO messages) or Standard Error (eEverything else)
      Specified by:
      writeMessage in class GenericLog
      Parameters:
      messageType - should be one of the constants DEBUG, INFO, WARN, ERROR or SYSERR as defined in LogInterface.
      messageText - The message
      isModal - ignored as we are dumping messages to the console.
      isLogged - ignored as we are dumping messages to the console.
    • setAutoFlush

      public void setAutoFlush(boolean flushEveryMessage)
      This is required by LogInterface but is not used in the implementation.
      Specified by:
      setAutoFlush in interface LogInterface
      Overrides:
      setAutoFlush in class GenericLog
      Parameters:
      flushEveryMessage - true if the log is to be flushed every time a message is written to it.
    • flush

      public void flush()
      This is required by LogInterface but is not used in the implementation.
      Specified by:
      flush in interface LogInterface
      Specified by:
      flush in class GenericLog
    • getCurrentLog

      public String getCurrentLog()
      This is required by LogInterface but is not used in the implementation.
      Specified by:
      getCurrentLog in interface LogInterface
      Specified by:
      getCurrentLog in class GenericLog
      Returns:
      A full path name if a conventional log file is in use, or a descriptive string if no log file is in use.