I’m kind of struggling with the jetty-runner part ...
# getting-started
c
I’m kind of struggling with the jetty-runner part of GMS. Is there a specific reason for using this and not Jetty? As it seems to be deprecated. A quick solution is posted here (https://github.com/eclipse/jetty.project/issues/1905) I’m trying to add JSON logging for all components.
b
What specifically is the problem you are encountering?
c
Adding libraries and a custom log config to Jetty. Specifically for the jetty-runner part. (The GMS war I’ve got working already.)
b
Is it the Java 9 issue? What errors are you seeing? Do you mind linking the files your changing? I'm not sure of the historical reason @microscopic-receptionist-23548 feel free to chime in...
c
I’m not really changing any files as they are compiled. I’m also not really getting errors. Jetty runner is just not taking my dependencies nor is it using my log configuration. (As there is no way to force it, so it keeps using the standard one. (This is changed with more recent versions of the regular Jetty, so not the deprecated runner.) . Dependencies I’m trying to add:
Copy code
ch/qos/logback/contrib/logback-json-classic/0.1.5/logback-json-classic-0.1.5.jar"
ch/qos/logback/contrib/logback-json-core/0.1.5/logback-json-core-0.1.5.jar"
ch/qos/logback/contrib/logback-jackson/0.1.5/logback-jackson-0.1.5.jar"
And then a log xml file containing:
Copy code
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
        <encoder class="ch.qos.logback.core.encoder.LayoutWrappingEncoder">
            <layout class="ch.qos.logback.contrib.json.classic.JsonLayout">
                <timestampFormat>yyyy-MM-dd'T'HH:mm:ss.SSSX</timestampFormat>
                <timestampFormatTimezoneId>Etc/UTC</timestampFormatTimezoneId>
                <jsonFormatter class="ch.qos.logback.contrib.jackson.JacksonJsonFormatter"/>
                <appendLineSeparator>true</appendLineSeparator>
            </layout>
        </encoder>
    </appender>
m
@steep-airplane-62865 would be the expert here