ANSI stilling from cli can easily spill in to logger. This is generally good, as long as the appender supports it.
I don't think there is a good way to determine empirically if a stream supports ansi but a good approximation is to at least strip ansi formatting for the file appender