Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isLoggable (0.09 sec)

  1. src/main/java/org/codelibs/core/log/JulLoggerAdapter.java

            sourceClass = clazz.getName();
            logger = java.util.logging.Logger.getLogger(clazz.getName());
        }
    
        @Override
        public boolean isFatalEnabled() {
            return logger.isLoggable(Level.SEVERE);
        }
    
        @Override
        public void fatal(final String message) {
            logger.logp(Level.SEVERE, sourceClass, null, message);
        }
    
        @Override
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. okhttp/src/main/kotlin/okhttp3/internal/platform/android/AndroidLog.kt

          logger.useParentHandlers = false
          // log based on levels at startup to avoid logging each frame
          logger.level =
            when {
              Log.isLoggable(tag, Log.DEBUG) -> Level.FINE
              Log.isLoggable(tag, Log.INFO) -> Level.INFO
              else -> Level.WARNING
            }
          logger.addHandler(AndroidLogHandler)
        }
      }
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/concurrent/TaskLogger.kt

      task: Task,
      queue: TaskQueue,
      messageBlock: () -> String,
    ) {
      if (isLoggable(Level.FINE)) {
        log(task, queue, messageBlock())
      }
    }
    
    internal inline fun <T> Logger.logElapsed(
      task: Task,
      queue: TaskQueue,
      block: () -> T,
    ): T {
      var startNs = -1L
      val loggingEnabled = isLoggable(Level.FINE)
      if (loggingEnabled) {
        startNs = queue.taskRunner.backend.nanoTime()
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 2.6K bytes
    - Viewed (0)
Back to top