Add support for formatting logger messages