(bug 24620) Add types and test for LogFormatter