steps
sbt version: 1.10.6
java version: 17.0.12
Please see reproducible project at https://github.com/integrated-application-development/sbt-log-level. This project defines an sbt command logThenFail which makes 3 log entries using the logger state.log then throws a MessageOnlyException to fail the command.
When running sbt --warn logThenFail or sbt --error logThenFail, none of the warn and error logs show up.
problem
- Logging made from
state.log does not show up in any warn and error log levels.
error log from throwing MessageOnlyException also does not show up in warn and error log levels.
expectation
# expect the warnings and errors to show up but empty
$ sbt --warn logThenFail
# expect the errors to show up but empty
$ sbt --error logThenFail
steps
sbt version: 1.10.6
java version: 17.0.12
Please see reproducible project at https://github.com/integrated-application-development/sbt-log-level. This project defines an sbt command logThenFail which makes 3 log entries using the logger state.log then throws a MessageOnlyException to fail the command.
When running
sbt --warn logThenFailorsbt --error logThenFail, none of thewarnanderrorlogs show up.problem
state.logdoes not show up in anywarnanderrorlog levels.errorlog from throwingMessageOnlyExceptionalso does not show up inwarnanderrorlog levels.expectation