diff --git a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt index af5eeb26..45019dcf 100644 --- a/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt +++ b/src/main/kotlin/com/beust/kobalt/app/remote/KobaltServer.kt @@ -22,9 +22,7 @@ import javax.annotation.Nullable * The callbacks are used to initialize and clean up the state before and after each command, so that Kobalt's state * can be properly reset, making the server reentrant. * - * To enable websocket debugging, launch with: - * -Dorg.slf4j.simpleLogger.defaultLogLevel=debug - * More logging documentation: https://www.slf4j.org/apidocs/org/slf4j/impl/SimpleLogger.html + * To enable websocket debugging, uncomment the "debug" tag in logback.xml. */ class KobaltServer @Inject constructor(@Assisted val force: Boolean, @Assisted @Nullable val givenPort: Int?, @Assisted val initCallback: (String) -> List, diff --git a/src/main/resources/logback.xml b/src/main/resources/logback.xml new file mode 100644 index 00000000..e7bcf3ba --- /dev/null +++ b/src/main/resources/logback.xml @@ -0,0 +1,17 @@ + + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + +