Skip to content
Permalink
Browse files

Step 4: Add logging

  • Loading branch information...
baens committed Feb 17, 2018
1 parent 173f091 commit 7c753f0d1ee6d474a2801a805a20fa7fa4db98e6
Showing with 9 additions and 0 deletions.
  1. +9 −0 src/jaxrs/Application.kt
@@ -1,9 +1,18 @@
package jaxrs

import org.glassfish.jersey.logging.LoggingFeature
import org.glassfish.jersey.server.ResourceConfig
import java.util.logging.Level
import java.util.logging.Logger

class Application : ResourceConfig() {
init {
packages("jaxrs.resources")

register(LoggingFeature(Logger.getLogger(LoggingFeature.DEFAULT_LOGGER_NAME),
Level.INFO,
LoggingFeature.Verbosity.PAYLOAD_ANY,
Integer.MAX_VALUE)
)
}
}

0 comments on commit 7c753f0

Please sign in to comment.
You can’t perform that action at this time.