Class LoggingSupport

    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static boolean isEnabled  
      private static java.time.format.DateTimeFormatter timestampFormat  
    • Constructor Summary

      Constructors 
      Constructor Description
      LoggingSupport()  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static void logApi​(java.lang.String message)  
      (package private) static void logApiIfEnabled​(java.lang.String message)  
      (package private) static void logWithTimestamp​(java.lang.String message)  
      (package private) void withLogging​(java.lang.String apiName, java.lang.Runnable code)  
      (package private) <T> T withLogging​(java.lang.String apiName, java.util.function.Supplier<T> code)  
      • Methods inherited from class java.lang.Object

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

      • isEnabled

        private static final boolean isEnabled
      • timestampFormat

        private static final java.time.format.DateTimeFormatter timestampFormat
    • Constructor Detail

      • LoggingSupport

        LoggingSupport()
    • Method Detail

      • withLogging

        void withLogging​(java.lang.String apiName,
                         java.lang.Runnable code)
      • withLogging

        <T> T withLogging​(java.lang.String apiName,
                          java.util.function.Supplier<T> code)
      • logWithTimestamp

        static void logWithTimestamp​(java.lang.String message)
      • logApiIfEnabled

        static void logApiIfEnabled​(java.lang.String message)
      • logApi

        static void logApi​(java.lang.String message)