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 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…