This reverts commit25e8f2d575, reversing changes made toe5bc9a2fcb. Unfortunately, upon additional review we realised that these changes should not have been accepted. They're a partial implementation of support for programmatically configuring Logback, implemented in a way that only works during AOT processing and also potentially makes it harder for us to implement full support in the future. Closes gh-34361