Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for getLevel (0.12 sec)

  1. src/main/java/org/codelibs/fess/util/ErrorToWarnRewritePolicy.java

            for (final String name : loggerNames) {
                if (loggerName.startsWith(name)) {
                    final Level sourceLevel = event.getLevel();
                    if (sourceLevel != Level.ERROR) {
                        return event;
                    }
                    return new Log4jLogEvent.Builder(event).setLevel(Level.WARN).build();
                }
            }
            return event;
        }
    
        @PluginFactory
    Registered: Thu Oct 31 13:40:30 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 2.4K bytes
    - Viewed (0)
  2. android/guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

      public void test() throws Exception {
        assertTrue(handler.getStoredLogRecords().isEmpty());
        ExampleClassUnderTest.foo();
        LogRecord record = handler.getStoredLogRecords().get(0);
        assertEquals(Level.INFO, record.getLevel());
        assertEquals("message", record.getMessage());
        assertSame(EXCEPTION, record.getThrown());
      }
    
      public void testConcurrentModification() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  3. guava-testlib/test/com/google/common/testing/TestLogHandlerTest.java

      public void test() throws Exception {
        assertTrue(handler.getStoredLogRecords().isEmpty());
        ExampleClassUnderTest.foo();
        LogRecord record = handler.getStoredLogRecords().get(0);
        assertEquals(Level.INFO, record.getLevel());
        assertEquals("message", record.getMessage());
        assertSame(EXCEPTION, record.getThrown());
      }
    
      public void testConcurrentModification() throws Exception {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Dec 04 17:37:03 UTC 2017
    - 2.8K bytes
    - Viewed (0)
  4. okhttp-logging-interceptor/api/logging-interceptor.api

    	public final fun getLevel ()Lokhttp3/logging/HttpLoggingInterceptor$Level;
    	public fun intercept (Lokhttp3/Interceptor$Chain;)Lokhttp3/Response;
    	public final fun level (Lokhttp3/logging/HttpLoggingInterceptor$Level;)V
    	public final fun redactHeader (Ljava/lang/String;)V
    	public final fun redactQueryParams ([Ljava/lang/String;)V
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  5. okhttp-logging-interceptor/src/main/kotlin/okhttp3/logging/HttpLoggingInterceptor.kt

         * deprecated).
         */
        fun setLevel(level: Level) =
          apply {
            this.level = level
          }
    
        @JvmName("-deprecated_level")
        @Deprecated(
          message = "moved to var",
          replaceWith = ReplaceWith(expression = "level"),
          level = DeprecationLevel.ERROR,
        )
        fun getLevel(): Level = level
    
        @Throws(IOException::class)
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 11.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/log/Logger.java

         *            例外
         */
        public void log(final LogMessage logMessage, final Throwable throwable) {
            assertArgumentNotNull("logMessage", logMessage);
    
            final LogLevel level = logMessage.getLevel();
            if (isEnabledFor(level)) {
                final String message = logMessage.getMessage();
                switch (level) {
                case DEBUG:
                    log.debug(message, throwable);
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 13.2K bytes
    - Viewed (0)
  7. okhttp/src/test/java/okhttp3/KotlinDeprecationErrorTest.kt

        headers = Headers.of(mapOf("" to ""))
        val size: Int = headers.size()
      }
    
      @Test @Disabled
      fun httpLoggingInterceptor() {
        val interceptor = HttpLoggingInterceptor()
        val level = interceptor.getLevel()
      }
    
      @Test @Disabled
      fun httpUrl() {
        val httpUrl: HttpUrl = HttpUrl.get("")
        val url: URL = httpUrl.url()
        val uri: URI = httpUrl.uri()
        val scheme: String = httpUrl.scheme()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 13.3K bytes
    - Viewed (0)
  8. test-site/activator-launch-1.3.2.jar

    errorAndExit(String); public static scala.runtime.Nothing$ xsbt$boot$Boot$$exit(int); private void Boot$(); } xsbt/boot/ConfigurationParser$$anonfun$getLevel$2.class package xsbt.boot; public final synchronized class ConfigurationParser$$anonfun$getLevel$2 extends scala.runtime.AbstractFunction0 implements scala.Serializable { public void ConfigurationParser$$anonfun$getLevel$2(); } xsbt/boot/ConfigurationParser$$anonfun$parsePropertyDefinit$1.class package xsbt.boot; public final synchronized class Configura...
    Registered: Fri Nov 08 09:08:12 UTC 2024
    - Last Modified: Mon Apr 20 08:41:37 UTC 2015
    - 1.2M bytes
    - Viewed (0)
  9. okhttp-logging-interceptor/src/test/java/okhttp3/logging/HttpLoggingInterceptorTest.kt

      private val applicationInterceptor = HttpLoggingInterceptor(applicationLogs)
      private var extraNetworkInterceptor: Interceptor? = null
    
      private fun setLevel(level: Level) {
        networkInterceptor.setLevel(level)
        applicationInterceptor.setLevel(level)
      }
    
      @BeforeEach
      fun setUp(server: MockWebServer) {
        this.server = server
        client =
          OkHttpClient.Builder()
            .addNetworkInterceptor(
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sat Apr 06 09:14:38 UTC 2024
    - 37.6K bytes
    - Viewed (0)
  10. okhttp-logging-interceptor/README.md

    ```java
    HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
    logging.setLevel(Level.BASIC);
    OkHttpClient client = new OkHttpClient.Builder()
      .addInterceptor(logging)
      .build();
    ```
    
    You can change the log level at any time by calling `setLevel()`.
    
    To log to a custom location, pass a `Logger` instance to the constructor.
    ```java
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Sun Dec 17 15:34:10 UTC 2023
    - 1.3K bytes
    - Viewed (0)
Back to top