Add custom log formatter