I'm using the sbt-idea plugin and in my metaproject and main project, I have a setting for logLevel := Level.Warn
. This is effective at silencing all sub-warning messages from most of my build, but sbt-idea
keeps printing out info
messages.
I'm guessing that perhaps the plugin gets loaded before logLevel
is applied, and it somehow gets a reference to a logger with a different level? The plugin in particular doesn't seem to be doing anything particularly funky about logging, except that it does seem to ask the state for its logger at initialization. It might end up being a different logger object from the one after my settings get applied?
I can't figure out what part of sbt actually consumes the logLevel
setting key to see whether it creates a new logger or mutates the existing one.