Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
265 views
in Technique[技术] by (71.8m points)

scala - Use logger after task completion using sbt 1.4.x

Starting with sbt 1.4.x it does not seem possible to log using streams.value.log logger anymore after the associated task is completed (more details at sbt/sbt#5731).

This is used by the scalajs-bundler sbt plugin to log outputs from webpack-dev-server even when the task is complete. I found a global logger available under state.value.globalLogging.full fixing my issue, but as there is not too much documentation about it I am not sure it is the correct fix for my use case. Can someone validate the fix or point me to some documentation please?

Note: it is possible to fix the issue using ThisBuild / useLog4J := true (to use pre sbt 1.4.x loggers) but it is leaking large amounts of memory.

question from:https://stackoverflow.com/questions/65652019/use-logger-after-task-completion-using-sbt-1-4-x

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...