Custom log formatting.