Class LoggingSupport

java.lang.Object
com.microsoft.playwright.impl.LoggingSupport
Direct Known Subclasses:
ChannelOwner, SharedSelectors

class LoggingSupport extends Object
  • Field Details

    • isEnabled

      private static final boolean isEnabled
    • timestampFormat

      private static final DateTimeFormatter timestampFormat
  • Constructor Details

    • LoggingSupport

      LoggingSupport()
  • Method Details

    • withLogging

      void withLogging(String apiName, Runnable code)
    • withLogging

      <T> T withLogging(String apiName, Supplier<T> code)
    • logWithTimestamp

      static void logWithTimestamp(String message)
    • logApiIfEnabled

      static void logApiIfEnabled(String message)
    • logApi

      static void logApi(String message)