The ideas goes like this:
Strip away the Strings in the log statements. Store the strings in a file. This could maybe be done by bytecode manipulation.
The log codes could be replaced by a tool after the logging has been done. For example, process the file output and create a full log file. This could for example be a desktop application who perform this.