Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 21 for getLogger (0.15 sec)

  1. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

        for ((logger, tag) in knownLoggers) {
          enableLogging(logger, tag)
        }
      }
    
      private fun enableLogging(
        logger: String,
        tag: String,
      ) {
        val logger = Logger.getLogger(logger)
        if (configuredLoggers.add(logger)) {
          logger.useParentHandlers = false
          // log based on levels at startup to avoid logging each frame
          logger.level =
            when {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 3.9K bytes
    - Viewed (0)
  2. okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt

        if (assertionsEnabled && taskRunner.lock.isHeldByCurrentThread) {
          throw AssertionError("Thread ${Thread.currentThread().name} MUST NOT hold lock on $this")
        }
      }
    
      val logger = Logger.getLogger("TaskFaker." + instance++)
    
      /** Though this executor service may hold many threads, they are not executed concurrently. */
      private val tasksExecutor = Executors.newCachedThreadPool(threadFactory("TaskFaker"))
    
      /**
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Apr 29 00:33:04 GMT 2024
    - 12.6K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Writer.kt

          )
          sink.write(hpackBuffer, length)
    
          if (byteCount > length) writeContinuationFrames(streamId, byteCount - length)
        }
      }
    
      companion object {
        private val logger = Logger.getLogger(Http2::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sat Apr 20 17:03:43 GMT 2024
    - 11.3K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/SocksProxy.kt

        private const val ADDRESS_TYPE_IPV4 = 1
        private const val ADDRESS_TYPE_DOMAIN_NAME = 3
        private const val COMMAND_CONNECT = 1
        private const val REPLY_SUCCEEDED = 0
        private val logger = Logger.getLogger(SocksProxy::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Thu Apr 11 22:09:35 GMT 2024
    - 7.7K bytes
    - Viewed (0)
  5. okhttp/src/main/kotlin/okhttp3/internal/http2/Http2Reader.kt

          streamId: Int,
          origin: String,
          protocol: ByteString,
          host: String,
          port: Int,
          maxAge: Long,
        )
      }
    
      companion object {
        val logger: Logger = Logger.getLogger(Http2::class.java.name)
    
        @Throws(IOException::class)
        fun lengthWithoutPadding(
          length: Int,
          flags: Int,
          padding: Int,
        ): Int {
          var result = length
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 19.9K bytes
    - Viewed (0)
  6. samples/guide/src/main/java/okhttp3/recipes/kt/WiresharkExample.kt

        fun register() {
          // Enable JUL logging for SSL events, must be activated early or via -D option.
          System.setProperty("javax.net.debug", "")
          logger =
            Logger.getLogger("javax.net.ssl")
              .apply {
                level = Level.FINEST
                useParentHandlers = false
              }
        }
      }
    }
    
    @SuppressSignatureCheck
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 10.7K bytes
    - Viewed (1)
  7. mockwebserver/src/main/kotlin/mockwebserver3/MockWebServer.kt

              authType: String,
            ) = throw AssertionError()
    
            override fun getAcceptedIssuers(): Array<X509Certificate> = throw AssertionError()
          }
    
        private val logger = Logger.getLogger(MockWebServer::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Sun Mar 31 17:16:15 GMT 2024
    - 37.4K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/TestLogHandler.kt

     * assertions about them.
     */
    class TestLogHandler(
      private val logger: Logger,
    ) : TestRule, BeforeEachCallback, AfterEachCallback {
      constructor(loggerName: Class<*>) : this(Logger.getLogger(loggerName.getName()))
    
      private val logs = LinkedBlockingQueue<String>()
    
      private val handler =
        object : Handler() {
          override fun publish(logRecord: LogRecord) {
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Mon Jan 08 01:13:22 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  9. mockwebserver/src/main/kotlin/mockwebserver3/QueueDispatcher.kt

         * isn't transmitted because the connection is closed before this response is returned.
         */
        private val DEAD_LETTER = MockResponse(code = HTTP_UNAVAILABLE)
    
        private val logger = Logger.getLogger(QueueDispatcher::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 3K bytes
    - Viewed (0)
  10. mockwebserver-deprecated/src/main/kotlin/okhttp3/mockwebserver/MockWebServer.kt

        }
      }
    
      override fun toString(): String = delegate.toString()
    
      @Throws(IOException::class)
      override fun close() = delegate.close()
    
      companion object {
        private val logger = Logger.getLogger(MockWebServer::class.java.name)
      }
    Plain Text
    - Registered: Fri May 03 11:42:14 GMT 2024
    - Last Modified: Tue Jan 23 14:31:42 GMT 2024
    - 5.9K bytes
    - Viewed (0)
Back to top