Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for OneLineLogFormat (0.18 sec)

  1. okcurl/src/main/kotlin/okhttp3/curl/logging/OneLineLogFormat.kt

    import java.util.logging.LogRecord
    
    /**
     * Is Java8 Data and Time really this bad, or is writing this on a plane from just javadocs a bad
     * idea?
     *
     * Why so much construction?
     */
    class OneLineLogFormat : Formatter() {
      private val d =
        DateTimeFormatterBuilder()
          .appendValue(HOUR_OF_DAY, 2)
          .appendLiteral(':')
          .appendValue(MINUTE_OF_HOUR, 2)
          .optionalStart()
          .appendLiteral(':')
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.1K bytes
    - Viewed (1)
  2. okcurl/src/main/kotlin/okhttp3/curl/logging/LoggingUtil.kt

                    System.err.println(parameters[0])
                  }
                }
              }
    
            if (debug) {
              handler.level = Level.ALL
              handler.formatter = OneLineLogFormat()
              val activeLogger = getLogger("")
              activeLogger.addHandler(handler)
              activeLogger.level = Level.ALL
    
              getLogger("jdk.event.security").level = Level.INFO
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Fri Apr 05 03:30:42 UTC 2024
    - 2.7K bytes
    - Viewed (0)
Back to top