Log messages to several outputs.