Class LoggingModule


  • public class LoggingModule
    extends java.lang.Object
    A helper module which logs messages based on a condition.
    Author:
    Collin Alpert
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingModule()  
    • Method Summary

      Modifier and Type Method Description
      void log​(java.lang.String text)
      Prints messages to the query, while considering the DBConnection.LOG_QUERIES constant.
      void logf​(java.lang.String text, java.lang.Object... params)
      Prints formatted messages to the query, while considering the DBConnection.LOG_QUERIES constant.
      • Methods inherited from class java.lang.Object

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

      • LoggingModule

        public LoggingModule()
    • Method Detail

      • log

        public void log​(java.lang.String text)
        Prints messages to the query, while considering the DBConnection.LOG_QUERIES constant.
        Parameters:
        text - The message to print.
      • logf

        public void logf​(java.lang.String text,
                         java.lang.Object... params)
        Prints formatted messages to the query, while considering the DBConnection.LOG_QUERIES constant.
        Parameters:
        text - The formatted text.
        params - The parameters to be inserted into the string.