Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for androidLogging (0.23 sec)

  1. okhttp-android/src/main/kotlin/okhttp3/android/AndroidLogging.kt

     */
    fun LoggingEventListener.Companion.androidLogging(
      priority: Int = Log.INFO,
      tag: String = "OkHttp",
    ) = LoggingEventListener.Factory { Log.println(priority, tag, it) }
    
    /**
     * An OkHttp [HttpLoggingInterceptor], with android Log as the target.
     */
    fun HttpLoggingInterceptor.Companion.androidLogging(
      priority: Int = Log.INFO,
      tag: String = "OkHttp",
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 1.2K bytes
    - Viewed (0)
  2. okhttp-android/api/okhttp-android.api

    public final class okhttp3/android/AndroidLoggingKt {
    	public static final fun androidLogging (Lokhttp3/logging/HttpLoggingInterceptor$Companion;ILjava/lang/String;)Lokhttp3/logging/HttpLoggingInterceptor;
    	public static final fun androidLogging (Lokhttp3/logging/LoggingEventListener$Companion;ILjava/lang/String;)Lokhttp3/logging/LoggingEventListener$Factory;
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 1.3K bytes
    - Viewed (1)
  3. okhttp-android/src/test/kotlin/okhttp3/android/AndroidLoggingTest.kt

          }
    
      val request = Request("http://google.com/robots.txt".toHttpUrl())
    
      @Test
      fun testHttpLoggingInterceptor() {
        val interceptor =
          HttpLoggingInterceptor.androidLogging(tag = "testHttpLoggingInterceptor").apply {
            level = HttpLoggingInterceptor.Level.BASIC
          }
    
        val client = clientBuilder.addInterceptor(interceptor).build()
    
        try {
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Mon Apr 01 11:07:32 GMT 2024
    - 3.2K bytes
    - Viewed (0)
  4. CHANGELOG.md

        This feature increases the client's traffic and the load on the server. Talking to your server's
        operators before adopting it.
    
     *  New in okhttp-android: `HttpLoggingInterceptor.androidLogging()` and
        `LoggingEventListener.androidLogging()` write HTTP calls or events to Logcat.
    
     *  New: `OkHttpClient.webSocketCloseTimeout` configures how long a web socket connection will wait
    Plain Text
    - Registered: Fri Apr 26 11:42:10 GMT 2024
    - Last Modified: Thu Apr 18 01:31:39 GMT 2024
    - 21.4K bytes
    - Viewed (0)
Back to top