Package com.microsoft.playwright.impl
Class LoggingSupport
- java.lang.Object
-
- com.microsoft.playwright.impl.LoggingSupport
-
- Direct Known Subclasses:
ChannelOwner,SharedSelectors
class LoggingSupport extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private static booleanisEnabledprivate static java.time.format.DateTimeFormattertimestampFormat
-
Constructor Summary
Constructors Constructor Description LoggingSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) static voidlogApi(java.lang.String message)(package private) static voidlogApiIfEnabled(java.lang.String message)(package private) static voidlogWithTimestamp(java.lang.String message)(package private) voidwithLogging(java.lang.String apiName, java.lang.Runnable code)(package private) <T> TwithLogging(java.lang.String apiName, java.util.function.Supplier<T> code)
-
-
-
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)
-
-