Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 33 for setLevel (0.14 seconds)

  1. src/test/java/org/codelibs/fess/util/ErrorToWarnRewritePolicyTest.java

                    .setLoggerName("test.logger.sub")
                    .setLevel(Level.ERROR)
                    .setMessage(new SimpleMessage("test message 1"))
                    .build();
    
            LogEvent event2 = Log4jLogEvent.newBuilder()
                    .setLoggerName("another.logger.sub")
                    .setLevel(Level.ERROR)
                    .setMessage(new SimpleMessage("test message 2"))
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 12.2K bytes
    - Click Count (0)
  2. 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() {
        client =
          OkHttpClient
            .Builder()
            .addNetworkInterceptor(
              Interceptor { chain ->
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Nov 07 02:57:33 GMT 2025
    - 39.4K bytes
    - Click Count (0)
  3. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Thu Oct 30 21:39:59 GMT 2025
    - 1.3K bytes
    - Click Count (0)
  4. src/test/java/org/codelibs/fess/util/LogNotificationAppenderTest.java

        }
    
        private LogEvent createLogEvent(final Level level, final String loggerName, final String message) {
            return Log4jLogEvent.newBuilder() //
                    .setLoggerName(loggerName) //
                    .setLevel(level) //
                    .setMessage(new SimpleMessage(message)) //
                    .setTimeMillis(System.currentTimeMillis()) //
                    .build();
        }
    
        @Test
        public void test_createAppender() {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 10.7K bytes
    - Click Count (0)
  5. impl/maven-cli/src/main/java/org/apache/maven/cling/logging/impl/LogbackConfiguration.java

                        default -> ch.qos.logback.classic.Level.ERROR;
                    };
            ((ch.qos.logback.classic.Logger) LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME)).setLevel(value);
        }
    
        @Override
        public void activate() {
            // no op
        }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Tue Dec 17 09:56:12 GMT 2024
    - 1.6K bytes
    - Click Count (0)
  6. src/main/java/jcifs/smb1/util/LogStream.java

        public LogStream(final PrintStream stream) {
            super(stream);
        }
    
        /**
         * Sets the logging level.
         *
         * @param level the logging level to set
         */
        public static void setLevel(final int level) {
            LogStream.level = level;
        }
    
        /**
         * This must be called before <code>getInstance</code> is called or
         * it will have no effect.
         *
    Created: Sun Apr 05 00:10:12 GMT 2026
    - Last Modified: Sat Aug 16 01:32:48 GMT 2025
    - 2.1K bytes
    - Click Count (0)
  7. src/main/java/org/codelibs/fess/mylasta/mail/LogNotificationPostcard.java

         * Even if empty string, treated as empty plainly. So "IF pmb != null" is false if empty.
         * @param level The parameter value of level. (NotNull)
         */
        public void setLevel(String level) {
            registerVariable("level", level);
        }
    
        /**
         * Set the value of hostname, used in parameter comment. <br>
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 02:24:08 GMT 2026
    - 5.3K bytes
    - Click Count (0)
  8. 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;
        }
    
        /**
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Jul 17 08:28:31 GMT 2025
    - 3.4K bytes
    - Click Count (0)
  9. 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
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Oct 07 15:15:46 GMT 2025
    - 4.6K bytes
    - Click Count (0)
  10. 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)
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Fri Nov 07 02:57:33 GMT 2025
    - 11.5K bytes
    - Click Count (0)
Back to Top