Logstash forwarder vs. logback json encoder

I prefer logging to a file for the buffering it provides. You don't want to lose messages when you have network connectivity issues, nor do you don't want it to slow down your application.