Skip to content

Loggings Created in Commands Not Showing up in WARN or ERROR Log Levels #7971

@raphaelNguyen

Description

@raphaelNguyen

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions