Dumping log messages as json. Need to keep an eye on the performance implications.