Programmatically update Logging Levels

I’m looking to update the log levels via a groovy script. I’m not convinced this is possible; anyone do this and have examples?

You should be able to do something like

container.lookup(LogManager.class)

Ref - nexus-public/LogManager.java at master · sonatype/nexus-public · GitHub

Ah-ha!!! Thanks, that was the missing piece…

-mike