Class WolfSSLDebug


  • public class WolfSSLDebug
    extends java.lang.Object
    Central location for all debugging messages This class is used internally for displaying debug message.
    Author:
    wolfSSL
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static boolean DEBUG
      boolean to check if debug mode is on
      static java.lang.String ERROR
      Error level debug message
      static java.lang.String INFO
      Info level debug message
    • Constructor Summary

      Constructors 
      Constructor Description
      WolfSSLDebug()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void log​(java.lang.Class cl, java.lang.String tag, java.lang.String string)
      Checks if debugging is turned on and prints out the message.
      static void print​(java.lang.String string)
      Prints out a message to the console
      • Methods inherited from class java.lang.Object

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

      • DEBUG

        public static boolean DEBUG
        boolean to check if debug mode is on
      • ERROR

        public static java.lang.String ERROR
        Error level debug message
      • INFO

        public static java.lang.String INFO
        Info level debug message
    • Constructor Detail

      • WolfSSLDebug

        public WolfSSLDebug()
    • Method Detail

      • print

        public static void print​(java.lang.String string)
        Prints out a message to the console
        Parameters:
        string - message to be printed
      • log

        public static void log​(java.lang.Class cl,
                               java.lang.String tag,
                               java.lang.String string)
        Checks if debugging is turned on and prints out the message.
        Parameters:
        cl - class being called from to get debug info
        tag - level of debug message i.e. WolfSSLDebug.INFO
        string - message to be printed out