These are chat archives for sbt/sbt
A relaxed chat room about sbt (That interactive build tool). For getting help on sbt, we encourage people to document it on Stackoverflow or subscribing to Lightbend subscription.
sbtin a project, I see a log message
sbt server started at 127.0.0.1:4714, and from another terminal I can connect to it with
sbt client 127.0.0.1:4714. The behavior is quite strange though: I can send commands to the server from this secondary shell, but some output will appear on the server side, some on the client.
I don't know how to format event messages from custom extraLoggers
val extraLoggers = settingKey[ScopedKey[_] => Seq[Appender]]("A function that provides additional loggers for a given setting.").withRank(DSetting)
extraLoggers must satisfy
Appender receives event messages through
def append(event: org.apache.logging.log4j.core.LogEvent): Unit
and the messages looks like these
ObjectEvent(error, [Error] /Users/foo/sc_work/plugin-test/src/main/scala/example/ScalaJsExample.scala:26: unbound placeholder parameter, Some(console0), None, xsbti.Problem, JObject([Lsjsonnew.shaded.scalajson.ast.unsafe.JField;@1cd90669)) StringEvent(info, Compiling 1 Scala source to /Users/foo/sc_work/plugin-test/target/scala-2.12/classes ..., Some(console0), None)
How do I properly format these? Any advice will be appreciated.