One option would be to replace java.lang.System or java.io.PrintStream. You'd have to specify either of those on your boot classpath instead of the normal one, since you can't (IIRC) override java.* ...
Code conventions and standard software development wisdom dictate that methods should not be too long because they become difficult to fully comprehend, they lose readability when they get too long, ...