Add StringFormattingHandler for logging