From what I could gather, the '\n' in the regex is interpreted correctly as a new line. However, there is no way to represent '\t' or '\n' in the replacement part. The above unit test passes because the java compiler substitutes the TAB character for '\t'. However, it seems to me this is more a limitation of the Java regexp engine than a limitation in logback. How about using spaces instead of the TAB character? |