Package 

Enum Level

  • All Implemented Interfaces:
    java.io.Serializable , kotlin.Comparable

    
    public enum Level
    extends Enum<Level>
                        

    Http requests/response log level.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      NONE

      No logs.

      BASIC

      Logs request and response lines.

      Example:

      <pre>`--> POST /greeting http/1.1 (3-byte body)<-- 200 OK (22ms, 6-byte body) `</pre> *

      HEADERS

      Logs request and response lines and their respective headers.

      Example:

      <pre>`--> POST /greeting http/1.1 Host: example.com Content-Type: plain/text Content-Length: 3 --> END POST<-- 200 OK (22ms) Content-Type: plain/text Content-Length: 6 <-- END HTTP `</pre> *

      BODY

      Logs request and response lines and their respective headers and bodies (if present).

      Example:

      <pre>`--> POST /greeting http/1.1 Host: example.com Content-Type: plain/text Content-Length: 3Hi? --> END GET<-- 200 OK (22ms) Content-Type: plain/text Content-Length: 6Hello! <-- END HTTP `</pre> *

    • Method Summary

      Modifier and Type Method Description
      final String getName()
      final Integer getOrdinal()
      • Methods inherited from class ai.tock.shared.Level

        compareTo, equals, finalize, getDeclaringClass, hashCode, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait